Skip to content

Commit 7752236

Browse files
committed
Merge pull request #65 from biakaveron/issue-4566-isnotnull
handle both <> NULL and != NULL as IS NOT NULL refs #4566
2 parents d7ce493 + be193d1 commit 7752236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/kohana/database/query/builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function _compile_conditions(Database $db, array $conditions)
8080
// Convert "val = NULL" to "val IS NULL"
8181
$op = 'IS';
8282
}
83-
elseif ($op === '!=')
83+
elseif ($op === '!=' OR $op === '<>')
8484
{
8585
// Convert "val != NULL" to "valu IS NOT NULL"
8686
$op = 'IS NOT';

0 commit comments

Comments
 (0)