mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Additional tests for ticket #1821. (CVS 3189)
FossilOrigin-Name: b93e3fb02aeff7fe6cae56c3a45c43ffdb2f030b
This commit is contained in:
19
test/in.test
19
test/in.test
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing the IN and BETWEEN operator.
|
||||
#
|
||||
# $Id: in.test,v 1.16 2006/05/23 23:22:29 drh Exp $
|
||||
# $Id: in.test,v 1.17 2006/05/23 23:25:10 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -346,5 +346,22 @@ do_test in-11.3 {
|
||||
SELECT * FROM t6 WHERE +b IN ('2');
|
||||
}
|
||||
} {}
|
||||
do_test in-11.4 {
|
||||
# No coercion because column a as affinity NONE
|
||||
execsql {
|
||||
SELECT * FROM t6 WHERE a IN ('2');
|
||||
}
|
||||
} {}
|
||||
do_test in-11.5 {
|
||||
execsql {
|
||||
SELECT * FROM t6 WHERE a IN (2);
|
||||
}
|
||||
} {2 3}
|
||||
do_test in-11.6 {
|
||||
# No coercion because column a as affinity NONE
|
||||
execsql {
|
||||
SELECT * FROM t6 WHERE +a IN ('2');
|
||||
}
|
||||
} {}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user