Modify sub-query handling. Tickets #1083 and #1084. (CVS 2286)

FossilOrigin-Name: b1b50f315873a8614920d1e3af4a07fb29a7ff6a
This commit is contained in:
danielk1977
2005-01-29 08:32:43 +00:00
parent c9ec413a08
commit b3bce66232
27 changed files with 833 additions and 449 deletions
+14 -1
View File
@@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc4.test,v 1.13 2005/01/21 03:12:16 danielk1977 Exp $
# $Id: misc4.test,v 1.14 2005/01/29 08:32:46 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -119,8 +119,21 @@ ifcapable subquery {
where a.key=x.key;
}
} {01 data01 01 3.0 +1 data+1 +1 7.0}
# This test case tests the same property as misc4-4.1, but it is
# a bit smaller which makes it easier to work with while debugging.
do_test misc4-4.2 {
execsql {
CREATE TABLE ab(a TEXT, b TEXT);
INSERT INTO ab VALUES('01', '1');
}
execsql {
select * from ab, (select b from ab) as x where x.b = ab.a;
}
} {}
}
# Ticket #1036. When creating tables from a SELECT on a view, use the
# short names of columns.
#