Skip to content

Commit 95b27c5

Browse files
committed
Merge pull request #457 from ricwein/master
fixed missing space before operator when comparing against NULL
2 parents f724dff + bbb7b8b commit 95b27c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ protected function _buildCondition($operator, &$conditions)
13961396
if (is_array($val)) {
13971397
$this->_bindParams($val);
13981398
} elseif ($val === null) {
1399-
$this->_query .= $operator . " NULL";
1399+
$this->_query .= ' ' . $operator . " NULL";
14001400
} elseif ($val != 'DBNULL' || $val == '0') {
14011401
$this->_query .= $this->_buildPair($operator, $val);
14021402
}

tests/dbObjectTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?
1+
<?php
22
error_reporting (E_ALL|E_STRICT);
33
require_once ("../MysqliDb.php");
44
require_once ("../dbObject.php");

0 commit comments

Comments
 (0)