Compare commits

...

2 Commits

Author SHA1 Message Date
Clemens Schwaighofer
67b725cb65 DB\IO fixes for logging 2023-10-31 10:21:52 +09:00
Clemens Schwaighofer
648d2c3eb5 Release: v9.10.0 2023-10-23 17:14:47 +09:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
9.9.1 9.10.0

View File

@@ -1186,7 +1186,7 @@ class IO
*/ */
private function __dbDebugPrepareContext(string $query, array $params = []): array private function __dbDebugPrepareContext(string $query, array $params = []): array
{ {
if ($this->params === []) { if ($params === []) {
return []; return [];
} }
$error_data = [ $error_data = [
@@ -2411,6 +2411,8 @@ class IO
// set the query // set the query
$this->cursor_ext[$query_hash]['query'] = $query; $this->cursor_ext[$query_hash]['query'] = $query;
// set the query parameters
$this->cursor_ext[$query_hash]['params'] = $params;
// before doing ANYTHING check if query is "SELECT ..." everything else does not work // before doing ANYTHING check if query is "SELECT ..." everything else does not work
if (!$this->dbCheckQueryForSelect($this->cursor_ext[$query_hash]['query'])) { if (!$this->dbCheckQueryForSelect($this->cursor_ext[$query_hash]['query'])) {
$this->__dbError(17, false, context: [ $this->__dbError(17, false, context: [
@@ -2420,8 +2422,6 @@ class IO
]); ]);
return false; return false;
} }
// set the query parameters
$this->cursor_ext[$query_hash]['params'] = $params;
// QUERY PARAMS: run query params check and rewrite // QUERY PARAMS: run query params check and rewrite
if ($this->dbGetConvertPlaceholder() === true) { if ($this->dbGetConvertPlaceholder() === true) {
try { try {