We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc28639 + 03e5d76 commit a109005Copy full SHA for a109005
MysqliDb.php
@@ -911,7 +911,7 @@ protected function _buildWhere () {
911
$this->_bindParams ($val);
912
else if ($val === null)
913
$this->_query .= $operator . " NULL";
914
- else if ($val != 'DBNULL')
+ else if ($val != 'DBNULL' || $val == '0')
915
$this->_query .= $this->_buildPair ($operator, $val);
916
}
917
@@ -1028,7 +1028,7 @@ protected function replacePlaceHolders ($str, $vals) {
1028
$val = $vals[$i++];
1029
if (is_object ($val))
1030
$val = '[object]';
1031
- if ($val == NULL)
+ if ($val === NULL)
1032
$val = 'NULL';
1033
$newStr .= substr ($str, 0, $pos) . "'". $val . "'";
1034
$str = substr ($str, $pos + 1);
0 commit comments