sl@0: # 2007 June 24 sl@0: # sl@0: # The author disclaims copyright to this source code. In place of sl@0: # a legal notice, here is a blessing: sl@0: # sl@0: # May you do good and not evil. sl@0: # May you find forgiveness for yourself and forgive others. sl@0: # May you share freely, never taking more than you give. sl@0: # sl@0: #*********************************************************************** sl@0: # sl@0: # This file is to test that ticket #2450 has been fixed. sl@0: # sl@0: # $Id: tkt2450.test,v 1.1 2007/06/24 06:32:18 danielk1977 Exp $ sl@0: # sl@0: sl@0: set testdir [file dirname $argv0] sl@0: source $testdir/tester.tcl sl@0: sl@0: do_test tkt2450-1 { sl@0: execsql { sl@0: CREATE TABLE "t a" ("""cb"""); sl@0: INSERT INTO "t a" ("""cb""") VALUES (1); sl@0: SELECT """cb""" FROM "t a"; sl@0: } sl@0: } {1} sl@0: sl@0: do_test tkt2450-2 { sl@0: execsql { sl@0: SELECT * FROM "t a"; sl@0: } sl@0: } {1} sl@0: sl@0: do_test tkt2450-3 { sl@0: execsql { sl@0: SELECT "t a".* FROM "t a"; sl@0: } sl@0: } {1} sl@0: sl@0: do_test tkt2450-3 { sl@0: execsql { sl@0: CREATE TABLE t1(a); sl@0: INSERT INTO t1 VALUES(2); sl@0: SELECT * FROM "t a", t1; sl@0: } sl@0: } {1 2} sl@0: sl@0: finish_test