mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Allow CREATE TABLE and CREATE INDEX on attached databases. (CVS 1483)
FossilOrigin-Name: 4984a130ccf3b8e486941a5d0d0cc70a691f0dac
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.31 2004/05/12 11:24:03 danielk1977 Exp $
|
||||
# $Id: select1.test,v 1.32 2004/05/28 11:37:29 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -535,14 +535,17 @@ do_test select1-8.5 {
|
||||
|
||||
# Check the behavior when the result set is empty
|
||||
#
|
||||
do_test select1-9.1 {
|
||||
catch {unset r}
|
||||
set r(*) {}
|
||||
db eval {SELECT * FROM test1 WHERE f1<0} r {}
|
||||
set r(*)
|
||||
} {}
|
||||
# SQLite v3 always sets r(*).
|
||||
#
|
||||
# do_test select1-9.1 {
|
||||
# catch {unset r}
|
||||
# set r(*) {}
|
||||
# db eval {SELECT * FROM test1 WHERE f1<0} r {}
|
||||
# set r(*)
|
||||
# } {}
|
||||
do_test select1-9.2 {
|
||||
execsql {PRAGMA empty_result_callbacks=on}
|
||||
catch {unset r}
|
||||
set r(*) {}
|
||||
db eval {SELECT * FROM test1 WHERE f1<0} r {}
|
||||
set r(*)
|
||||
|
Reference in New Issue
Block a user