modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-25 12:11:37 +04:00
parent 36a257b68c
commit 8df7d262cb
1 changed files with 4 additions and 1 deletions

View File

@ -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) {