modifs.mineures sans commentaires
This commit is contained in:
parent
36a257b68c
commit
8df7d262cb
|
@ -85,7 +85,10 @@ class _query_base extends _base {
|
||||||
const DEBUG_QUERIES = false;
|
const DEBUG_QUERIES = false;
|
||||||
|
|
||||||
function useStmt(\PDO $db, ?\PDOStatement &$stmt=null, ?string &$sql=null): bool {
|
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) {
|
if ($this->bindings !== null) {
|
||||||
$stmt = $db->prepare($this->sql);
|
$stmt = $db->prepare($this->sql);
|
||||||
foreach ($this->bindings as $name => $value) {
|
foreach ($this->bindings as $name => $value) {
|
||||||
|
|
Loading…
Reference in New Issue