mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Always reload the schema after a rollback. Ticket #594. (CVS 1229)
FossilOrigin-Name: 12c7a83f8e4055c4590983ef212648c781ebd963
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this script is testing the ATTACH and DETACH commands
|
||||
# and related functionality.
|
||||
#
|
||||
# $Id: attach2.test,v 1.4 2004/01/20 11:54:03 drh Exp $
|
||||
# $Id: attach2.test,v 1.5 2004/02/12 15:31:22 drh Exp $
|
||||
#
|
||||
|
||||
|
||||
@ -108,6 +108,7 @@ do_test attach2-2.10 {
|
||||
do_test attach2-2.11 {
|
||||
# when the write failed in the previous test, the transaction should
|
||||
# have rolled back.
|
||||
db2 eval ROLLBACK
|
||||
execsql {
|
||||
SELECT * FROM t1
|
||||
}
|
||||
@ -122,7 +123,6 @@ do_test attach2-2.12 {
|
||||
#
|
||||
do_test attach2-3.1 {
|
||||
db close
|
||||
db2 eval ROLLBACK
|
||||
set DB [sqlite db test.db]
|
||||
set rc [catch {sqlite_compile $DB "ATTACH 'test2.db' AS t2" TAIL} VM]
|
||||
if {$rc} {lappend rc $VM}
|
||||
|
Reference in New Issue
Block a user