mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Support isnull and notnull expr
This commit is contained in:
parent
14ef25ebb8
commit
5185f4bf9e
3 changed files with 59 additions and 2 deletions
|
@ -32,3 +32,4 @@ source $testdir/drop_index.test
|
|||
source $testdir/default_value.test
|
||||
source $testdir/boolean.test
|
||||
source $testdir/literal.test
|
||||
source $testdir/null.test
|
||||
|
|
20
testing/null.test
Executable file
20
testing/null.test
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env tclsh
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
do_execsql_test isnull {
|
||||
select null isnull, 'hi' isnull;
|
||||
} {1|0}
|
||||
|
||||
do_execsql_test is-null {
|
||||
select null is null, 'hi' is null;
|
||||
} {1|0}
|
||||
|
||||
do_execsql_test notnull {
|
||||
select null notnull, 'hi' notnull;
|
||||
} {0|1}
|
||||
|
||||
do_execsql_test not-null {
|
||||
select null not null, 'hi' not null;
|
||||
} {0|1}
|
Loading…
Add table
Add a link
Reference in a new issue