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 #3893 and ticket #3894. (CVS 6705)

FossilOrigin-Name: 2472f6db95cd537a908bdbbbbc41bad2bd987b2f
This commit is contained in:
drh
2009-06-02 15:47:37 +00:00
parent 856c10375d
commit e4a96be62b
3 changed files with 18 additions and 8 deletions

View File

@ -13,7 +13,7 @@
# The focus of this file is testing how SQLite generates the names
# of columns in a result set.
#
# $Id: colname.test,v 1.6 2008/10/09 15:56:46 drh Exp $
# $Id: colname.test,v 1.7 2009/06/02 15:47:38 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -316,4 +316,14 @@ do_test colname-7.1 {
execsql2 {SELECT rowid, * FROM t7}
} {x 1 x 1 y 2}
# Tickets #3893 and #3984. (Same problem; independently reported)
#
do_test colname-8.1 {
db eval {
CREATE TABLE "t3893"("x");
INSERT INTO t3893 VALUES(123);
SELECT "y"."x" FROM (SELECT "x" FROM "t3893") AS "y";
}
} {123}
finish_test