summaryrefslogtreecommitdiff
path: root/includes/database/query.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-16 06:42:49 -0600
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-16 06:42:49 -0600
commit9e12767c75191b440086a6a54f1d470a1b550332 (patch)
treedf156bdab0ab9172504b34ed1be2601db15e1f6c /includes/database/query.inc
parent184c145d13ccffd76ea0c4673349adaaa93c37bb (diff)
downloadbrdo-9e12767c75191b440086a6a54f1d470a1b550332.tar.gz
brdo-9e12767c75191b440086a6a54f1d470a1b550332.tar.bz2
Revert "Issue #813540 by jbrown, chx: Fixed Comparisons involving NULL must never return true."
This reverts commit 06f31080c7281c8227d2556cd0807744e91c9fb5.
Diffstat (limited to 'includes/database/query.inc')
-rw-r--r--includes/database/query.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/database/query.inc b/includes/database/query.inc
index 9cdd8784e..c77968767 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -1704,6 +1704,9 @@ class DatabaseCondition implements QueryConditionInterface, Countable {
if (is_array($value)) {
$operator = 'IN';
}
+ elseif (!isset($value)) {
+ $operator = 'IS NULL';
+ }
else {
$operator = '=';
}
@@ -1737,7 +1740,7 @@ class DatabaseCondition implements QueryConditionInterface, Countable {
* Implements QueryConditionInterface::isNull().
*/
public function isNull($field) {
- return $this->condition($field, NULL, 'IS NULL');
+ return $this->condition($field);
}
/**