Skip to content

Commit 6ba48cf

Browse files
committed
fix: select() does not escape after NULL as
1 parent 3f24caf commit 6ba48cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ public function select($select = '*', ?bool $escape = null)
425425
* @see https://github.com/codeigniter4/CodeIgniter4/issues/1169
426426
*/
427427
if (mb_stripos(trim($val), 'NULL') === 0) {
428-
$escape = false;
428+
$this->QBNoEscape[] = false;
429+
430+
continue;
429431
}
430432

431433
$this->QBNoEscape[] = $escape;

0 commit comments

Comments
 (0)