From bbf9c0a674e3bc794657a05702f10ac2564c04bc Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 2 Nov 2009 00:19:27 +0000 Subject: #620516 by Crell: Use isNull() inside SQLite driver. --- includes/database/sqlite/query.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'includes/database/sqlite') diff --git a/includes/database/sqlite/query.inc b/includes/database/sqlite/query.inc index a767b3241..de8f7f212 100644 --- a/includes/database/sqlite/query.inc +++ b/includes/database/sqlite/query.inc @@ -92,18 +92,15 @@ class UpdateQuery_sqlite extends UpdateQuery { if (is_array($data)) { // The field is an expression. $condition->condition($field, $data['expression'], '<>'); - // The IS NULL operator is badly managed by DatabaseCondition. - $condition->where($field . ' IS NULL'); + $condition->isNull($field); } elseif (is_null($data)) { // The field will be set to NULL. - // The IS NULL operator is badly managed by DatabaseCondition. - $condition->where($field . ' IS NOT NULL'); + $condition->isNull($field); } else { $condition->condition($field, $data, '<>'); - // The IS NULL operator is badly managed by DatabaseCondition. - $condition->where($field . ' IS NULL'); + $condition->isNull($field); } } if (count($condition)) { -- cgit v1.2.3