Modify ATTACH and DETACH to execute at runtime instead of compile time. (CVS 2803)

FossilOrigin-Name: 5e04ec694add7a8331e3d6fbdfcaed51349ae7bc
This commit is contained in:
danielk1977
2005-12-06 17:19:11 +00:00
parent 7dd90a4785
commit f744bb56a1
7 changed files with 268 additions and 142 deletions
+3 -1
View File
@@ -12,7 +12,7 @@
# focus of this script is testing the ATTACH and DETACH commands
# and related functionality.
#
# $Id: attach2.test,v 1.32 2005/03/29 03:11:00 danielk1977 Exp $
# $Id: attach2.test,v 1.33 2005/12/06 17:19:12 danielk1977 Exp $
#
set testdir [file dirname $argv0]
@@ -134,12 +134,14 @@ do_test attach2-3.1 {
set DB [sqlite3 db test.db]
set rc [catch {sqlite3_prepare $DB "ATTACH 'test2.db' AS t2" -1 TAIL} VM]
if {$rc} {lappend rc $VM}
sqlite3_step $VM
sqlite3_finalize $VM
set rc
} {0}
do_test attach2-3.2 {
set rc [catch {sqlite3_prepare $DB "DETACH t2" -1 TAIL} VM]
if {$rc} {lappend rc $VM}
sqlite3_step $VM
sqlite3_finalize $VM
set rc
} {0}