diff --git a/src/db/pdo/_query_base.php b/src/db/pdo/_query_base.php index ad04447..4fd0aa1 100644 --- a/src/db/pdo/_query_base.php +++ b/src/db/pdo/_query_base.php @@ -85,7 +85,10 @@ class _query_base extends _base { const DEBUG_QUERIES = false; function useStmt(\PDO $db, ?\PDOStatement &$stmt=null, ?string &$sql=null): bool { - if (static::DEBUG_QUERIES) error_log($this->sql); #XXX + if (static::DEBUG_QUERIES) { #XXX + error_log($this->sql); + //error_log(var_export($this->bindings, true)); + } if ($this->bindings !== null) { $stmt = $db->prepare($this->sql); foreach ($this->bindings as $name => $value) {