1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Additional tests for ticket #1821. (CVS 3189)

FossilOrigin-Name: b93e3fb02aeff7fe6cae56c3a45c43ffdb2f030b
This commit is contained in:
drh
2006-05-23 23:25:09 +00:00
parent 8159a35f46
commit 9c0cb0e893
3 changed files with 25 additions and 8 deletions

View File

@ -1,5 +1,5 @@
C Fix\stype\scoercion\srules\sfor\sthe\sIN\soperator.\s\sTicket\s#1821.\s(CVS\s3188) C Additional\stests\sfor\sticket\s#1821.\s(CVS\s3189)
D 2006-05-23T23:22:29 D 2006-05-23T23:25:10
F Makefile.in 5d8dff443383918b700e495de42ec65bc1c8865b F Makefile.in 5d8dff443383918b700e495de42ec65bc1c8865b
F Makefile.linux-gcc 74ba0eadf88748a9ce3fd03d2a3ede2e6715baec F Makefile.linux-gcc 74ba0eadf88748a9ce3fd03d2a3ede2e6715baec
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -167,7 +167,7 @@ F test/fkey1.test 153004438d51e6769fb1ce165f6313972d6263ce
F test/format4.test 9f31d41d4f926cab97b2ebe6be00a6ab12dece87 F test/format4.test 9f31d41d4f926cab97b2ebe6be00a6ab12dece87
F test/func.test 27d02fd00b7c2a6b5c8c302d02f9f20876ce5cc8 F test/func.test 27d02fd00b7c2a6b5c8c302d02f9f20876ce5cc8
F test/hook.test 7e7645fd9a033f79cce8fdff151e32715e7ec50a F test/hook.test 7e7645fd9a033f79cce8fdff151e32715e7ec50a
F test/in.test ff339115cf02b302f05fb6495e74a1c544d85121 F test/in.test 369cb2aa1eab02296b4ec470732fe8c131260b1d
F test/index.test e65df12bed94b2903ee89987115e1578687e9266 F test/index.test e65df12bed94b2903ee89987115e1578687e9266
F test/index2.test ee83c6b5e3173a3d7137140d945d9a5d4fdfb9d6 F test/index2.test ee83c6b5e3173a3d7137140d945d9a5d4fdfb9d6
F test/index3.test f66718cd92ce1216819d47e6a156755e4b2c4ca1 F test/index3.test f66718cd92ce1216819d47e6a156755e4b2c4ca1
@ -355,7 +355,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
P 9d7297b9ef6ca2f35116e37f993bb029cf03d4f0 P 6e5a49762166a942e1b2c3beae8a30c07187eb10
R f27fe774c169114ee2aa60038b33ea52 R 877479d6ed6f9aea415d473667144301
U drh U drh
Z 8380180038ff17613da9bacbf7554e8c Z 8e45d4e74c04ae5de7b6a03b72d1d07f

View File

@ -1 +1 @@
6e5a49762166a942e1b2c3beae8a30c07187eb10 b93e3fb02aeff7fe6cae56c3a45c43ffdb2f030b

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The # This file implements regression tests for SQLite library. The
# focus of this file is testing the IN and BETWEEN operator. # 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] set testdir [file dirname $argv0]
source $testdir/tester.tcl source $testdir/tester.tcl
@ -346,5 +346,22 @@ do_test in-11.3 {
SELECT * FROM t6 WHERE +b IN ('2'); 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 finish_test