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

Add a test case for ticket #3879. (CVS 6675)

FossilOrigin-Name: 5b9b66f47b0b8178427806149958387d32b70dc2
This commit is contained in:
danielk1977
2009-05-25 11:46:10 +00:00
parent 09943b53dd
commit d17fe2a352
3 changed files with 61 additions and 7 deletions

View File

@ -1,5 +1,5 @@
C Additional\sclarification\sof\sthe\s3rd\sparameter\sto\ssqlite3_create_function().\nDocumentation\schange\sonly;\sno\schanges\sto\scode.\s\sTicket\s#3875.\s(CVS\s6674)
D 2009-05-24T21:59:28
C Add\sa\stest\scase\sfor\sticket\s#3879.\s(CVS\s6675)
D 2009-05-25T11:46:11
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 583e87706abc3026960ed759aff6371faf84c211
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -650,6 +650,7 @@ F test/tkt3832.test 7ebd5ac82d1e430accd5eec9768044133a94c2aa
F test/tkt3838.test 2a1525946bc9d3751e1d49ce95f3a2472f2b7408
F test/tkt3841.test fe7451fb899bc31c5fbcee53362c621d0271e25f
F test/tkt3871.test cd3af9007cf91ed5a2c1b36243979274bb3b2632
F test/tkt3879.test e6eaab6a50937a66a3af8ce219eda24813a7eee3
F test/tokenize.test ce430a7aed48fc98301611429595883fdfcab5d7
F test/trace.test 19ffbc09885c3321d56358a5738feae8587fb377
F test/trans.test d887cb07630dc39879a322d958ad8b006137485c
@ -730,7 +731,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P 4fe4c5fac51c0a5b50f839a3f43d786e1ff4a4e0
R 10e213bd038eb44cac74337664dd82cd
U drh
Z a39fbf7e1cf81f82a252cb610a6a23cf
P dd75e376e8fed4f2e347672d483ee7c1929007cf
R 3377cc898561326f0eeb4c2032ec307c
U danielk1977
Z 71121ca32fca9662a2663bcd83553f28

View File

@ -1 +1 @@
dd75e376e8fed4f2e347672d483ee7c1929007cf
5b9b66f47b0b8178427806149958387d32b70dc2

53
test/tkt3879.test Normal file
View File

@ -0,0 +1,53 @@
# 2009 May 25
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# May you do good and not evil.
# May you find forgiveness for yourself and forgive others.
# May you share freely, never taking more than you give.
#
#***********************************************************************
#
# Tests to verify ticket #3879 is fixed.
#
# $Id: tkt3879.test,v 1.1 2009/05/25 11:46:11 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
do_test tkt3879.1.1 {
execsql {
CREATE TABLE t1 (a PRIMARY KEY, b);
INSERT INTO t1 VALUES ('w', 1);
INSERT INTO t1 VALUES ('z', -1);
CREATE TABLE t2 (m INTEGER PRIMARY KEY, n, a, p);
INSERT INTO t2 VALUES (25, 13, 'w', 1);
INSERT INTO t2 VALUES (26, 25, 'z', 153);
INSERT INTO t2 VALUES (27, 25, 'z', 68);
CREATE TABLE t3 (m);
INSERT INTO t3 VALUES (25);
}
} {}
do_test tkt3879.1.2 {
execsql {
SELECT 111, t1.b*123
FROM t3, t2 AS j0, t2 AS j1, t1
WHERE j0.m=t3.m AND t1.a=j0.a AND j1.n=j0.m;
}
} {111 123 111 123}
do_test tkt3879.1.3 {
execsql {
SELECT 222, t1.b*123
FROM t3, t2 AS j0, t2 AS j1, t1
WHERE j0.m=t3.m AND t1.a=j0.a AND j1.n=j0.m
ORDER BY t1.b;
}
} {222 123 222 123}
finish_test