Skip to content

Commit

Permalink
Remove single quotes on null value ThingEngineer#912
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwalkerec committed Mar 31, 2024
1 parent 385cb30 commit 009f7e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MysqliDb.php
Expand Up @@ -2073,8 +2073,10 @@ protected function replacePlaceHolders($str, $vals)
}
if ($val === null) {
$val = 'NULL';
$newStr .= substr($str, 0, $pos) . $val;
}else{
$newStr .= substr($str, 0, $pos) . "'" . $val . "'";
}
$newStr .= substr($str, 0, $pos) . "'" . $val . "'";
$str = substr($str, $pos + 1);
}
$newStr .= $str;
Expand Down

0 comments on commit 009f7e1

Please sign in to comment.