diff options
author | matak <info@romanmatena.cz> | 2015-06-23 14:45:28 +0200 |
---|---|---|
committer | matak <info@romanmatena.cz> | 2015-06-23 14:45:28 +0200 |
commit | 80001c59dab981ad4401597e04912e1b2967b239 (patch) | |
tree | b9fa9e253ff27d3f8fc3bef05a039ac5af37d4ba /codebase | |
parent | bf05131badd95583cc6e76b84cceb286fac689fd (diff) | |
download | connector-php-80001c59dab981ad4401597e04912e1b2967b239.zip connector-php-80001c59dab981ad4401597e04912e1b2967b239.tar.gz connector-php-80001c59dab981ad4401597e04912e1b2967b239.tar.bz2 |
fatal error PDO not found
Fatal Error
Class 'Dhtmlx\Connector\DataStorage\PDO' not found
Classes and interfaces without a backslash \ inside their
fully-qualified name (for example, the built-in PHP Exception class)
must be fully qualified when used in a namespaced file: for example new
\Exception();.
Diffstat (limited to 'codebase')
-rw-r--r-- | codebase/Dhtmlx/Connector/DataStorage/PDODBDataWrapper.php | 2 | ||||
-rw-r--r-- | codebase/Dhtmlx/Connector/DataStorage/ResultHandler/PDOResultHandler.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/codebase/Dhtmlx/Connector/DataStorage/PDODBDataWrapper.php b/codebase/Dhtmlx/Connector/DataStorage/PDODBDataWrapper.php index 8eebe0c..07dda9a 100644 --- a/codebase/Dhtmlx/Connector/DataStorage/PDODBDataWrapper.php +++ b/codebase/Dhtmlx/Connector/DataStorage/PDODBDataWrapper.php @@ -31,7 +31,7 @@ class PDODBDataWrapper extends DBDataWrapper { if ($where) $sql.=" WHERE ".$where; if ($sort) $sql.=" ORDER BY ".$sort; if ($start || $count) { - if ($this->connection->getAttribute(PDO::ATTR_DRIVER_NAME)=="pgsql") + if ($this->connection->getAttribute(\PDO::ATTR_DRIVER_NAME)=="pgsql") $sql.=" OFFSET ".$start." LIMIT ".$count; else $sql.=" LIMIT ".$start.",".$count; diff --git a/codebase/Dhtmlx/Connector/DataStorage/ResultHandler/PDOResultHandler.php b/codebase/Dhtmlx/Connector/DataStorage/ResultHandler/PDOResultHandler.php index d2b13ec..9aa2776 100644 --- a/codebase/Dhtmlx/Connector/DataStorage/ResultHandler/PDOResultHandler.php +++ b/codebase/Dhtmlx/Connector/DataStorage/ResultHandler/PDOResultHandler.php @@ -7,7 +7,7 @@ class PDOResultHandler { $this->res = $res; } public function next(){ - $data = $this->res->fetch(PDO::FETCH_ASSOC); + $data = $this->res->fetch(\PDO::FETCH_ASSOC); if (!$data){ $this->res->closeCursor(); return null; |