mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Adding table column query capability to support ODBC. (CVS 278)
FossilOrigin-Name: b63b3f3684a3d584ef99f54cde76b6c483bbfef7
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing the SELECT statement.
|
||||
#
|
||||
# $Id: select1.test,v 1.10 2001/09/16 00:13:28 drh Exp $
|
||||
# $Id: select1.test,v 1.11 2001/10/06 16:33:03 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -238,6 +238,20 @@ do_test select1-6.1 {
|
||||
set v [catch {execsql2 {SELECT f1 FROM test1 ORDER BY f2}} msg]
|
||||
lappend v $msg
|
||||
} {0 {f1 11 f1 33}}
|
||||
do_test select1-6.1.1 {
|
||||
execsql {PRAGMA full_column_names=on}
|
||||
set v [catch {execsql2 {SELECT f1 FROM test1 ORDER BY f2}} msg]
|
||||
lappend v $msg
|
||||
} {0 {f1 11 f1 33}}
|
||||
do_test select1-6.1.2 {
|
||||
set v [catch {execsql2 {SELECT * FROM test1 WHERE f1==11}} msg]
|
||||
execsql {PRAGMA full_column_names=off}
|
||||
lappend v $msg
|
||||
} {0 {test1.f1 11 test1.f2 22}}
|
||||
do_test select1-6.1.2 {
|
||||
set v [catch {execsql2 {SELECT * FROM test1 WHERE f1==11}} msg]
|
||||
lappend v $msg
|
||||
} {0 {f1 11 f2 22}}
|
||||
do_test select1-6.2 {
|
||||
set v [catch {execsql2 {SELECT f1 as xyzzy FROM test1 ORDER BY f2}} msg]
|
||||
lappend v $msg
|
||||
|
Reference in New Issue
Block a user