An an extra test associated with ticket #387. (CVS 1050)

FossilOrigin-Name: 6a07ac3782bc18f907ffcf66d908ddaa82ab9293
This commit is contained in:
drh 2003-07-09 16:34:56 +00:00
parent 073e5a7751
commit da808d56dc
3 changed files with 17 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C Allow\sthe\soutput\sarguments\sin\ssqlite_compile\sand\ssqlite_step\sto\sbe\sNULL\npointers.\s\sTickets\s#384\sand\s#385.\s(CVS\s1049)
D 2003-07-09T00:28:14
C An\san\sextra\stest\sassociated\swith\sticket\s#387.\s(CVS\s1050)
D 2003-07-09T16:34:56
F Makefile.in 9ad23ed4ca97f9670c4496432e3fbd4b3760ebde
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@ -97,7 +97,7 @@ F test/memdb.test cd4580f466f34c42354612a375c5adb90447e4c4
F test/memleak.test a18e6810cae96d2f6f5136920267adbefc8e1e90
F test/minmax.test b54ac3bc45460a4976b08ef363e05c032418726e
F test/misc1.test c7dc2f2bd702d8283e885a64ec0714be26cfb051
F test/misc2.test 5389f9aa90d6f3713880382d0ae42b8a5da82ffd
F test/misc2.test 36410e371d3924f7373988935219bda5a52cea4e
F test/misuse.test a3aa2b18a97e4c409a1fcaff5151a4dd804a0162
F test/notnull.test 7a08117a71e74b0321aaa937dbeb41a09d6eb1d0
F test/null.test 5c2b57307e4b6178aae825eb65ddbee01e76b0fd
@ -168,7 +168,7 @@ F www/speed.tcl 2f6b1155b99d39adb185f900456d1d592c4832b3
F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
P 303b2da1acd4b7b9d89dec0653e5f88fc10d56b8
R 34f9b1eab35573ed8198daefaef46c95
P dd84f88f6c4012e4a093a4881f6fe50527bb2006
R 4fffb2b13882985abe2dd3c02e48c471
U drh
Z b4400a15dee5249817b63cf50e812fdb
Z 437f994bbe53fffa8646d77e6805cf2f

View File

@ -1 +1 @@
dd84f88f6c4012e4a093a4881f6fe50527bb2006
6a07ac3782bc18f907ffcf66d908ddaa82ab9293

View File

@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc2.test,v 1.3 2003/06/29 20:25:09 drh Exp $
# $Id: misc2.test,v 1.4 2003/07/09 16:34:56 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -42,7 +42,7 @@ do_test misc2-2.1 {
execsql {
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
CREATE TABLE t2(x,y,z);
CREATE TABLE t2(a,b,c);
INSERT INTO t2 VALUES(7,8,9);
SELECT rowid, * FROM (SELECT * FROM t1, t2);
}
@ -53,3 +53,11 @@ do_test misc2-2.2 {
SELECT rowid, * FROM v1;
}
} {{} 1 2 3 7 8 9}
# Check name binding precedence. Ticket #387
#
do_test misc2-3.1 {
catchsql {
SELECT t1.b+t2.b AS a, t1.a, t2.a FROM t1, t2 WHERE a==10
}
} {1 {ambiguous column name: a}}