From 8df7d262cbf3d6baaa6c8a1eebaa19cc3879fc2b Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 25 Jun 2024 12:11:37 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/db/pdo/_query_base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {