CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
rowvalue6.test37 linesDownload Raw Back to test
1# 2016-08-182#3# The author disclaims copyright to this source code.  In place of4# a legal notice, here is a blessing:5#6#    May you do good and not evil.7#    May you find forgiveness for yourself and forgive others.8#    May you share freely, never taking more than you give.9#10#***********************************************************************11# The focus of this file is handling of NULL values in row-value IN12# expressions.13#14 15set testdir [file dirname $argv0]16source $testdir/tester.tcl17set ::testprefix rowvalue618 19do_execsql_test 1.1 {20  CREATE TABLE t1(a,b,c);21  CREATE INDEX t1x1 ON t1(a,b);22  INSERT INTO t1 VALUES(1,NULL,200);23 24  CREATE TABLE t2(x,y,z);25  INSERT INTO t2 VALUES(1,NULL,55);26 27  SELECT c FROM t1 WHERE (a,b) IN (SELECT x,y FROM t2 WHERE z==55);28} {}29do_execsql_test 1.2 {30  INSERT INTO t1 VALUES(2,3,400);31  INSERT INTO t2 VALUES(2,3,55);  32 33  SELECT c FROM t1 WHERE (a,b) IN (SELECT x,y FROM t2 WHERE z==55);34} {400}35 36finish_test37