Правки namespace

This commit is contained in:
CORP\phedor 2018-04-13 17:59:57 +03:00
parent ee06f1febb
commit 524b27936a
39 changed files with 141 additions and 120 deletions

View file

@ -4,7 +4,8 @@
* Класс оболочка для PDOStatement для замены Creole
*/
namespace ctiso\Database;
use PDO;
use PDO,
ctiso\Database;
class Statement
{
@ -50,7 +51,7 @@ class Statement
if ($this->limit) {
$this->query .= " LIMIT {$this->limit} OFFSET {$this->offset}";
}
/*.Database_PDOStatement.*/$stmt = $this->conn->prepare($this->query);
/*.PDOStatement.*/$stmt = $this->conn->prepare($this->query);
foreach ($this->binds as $bind) {
list($n, $value, $type) = $bind;
$stmt->bindValue($n, $value, (int) $type);