diff options
author | drh <drh@noemail.net> | 2017-08-01 00:20:34 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-08-01 00:20:34 +0000 |
commit | e9e1074d27e03e3a54f6547251923b27d7e8b51b (patch) | |
tree | 7db3870b1e90075b4f9c7ca2a21f2ecafc0c6ef1 /test/attach2.test | |
parent | 334d163e416c910bf2274d56f3024bb04113ff2b (diff) | |
parent | cf201488a52f4a000881c894c881ac15bfad8ef9 (diff) | |
download | sqlite-e9e1074d27e03e3a54f6547251923b27d7e8b51b.tar.gz sqlite-e9e1074d27e03e3a54f6547251923b27d7e8b51b.zip |
Allow ATTACH and DETACH inside of a transaction.
FossilOrigin-Name: 95e8f31658254dd2df3eeaae337aff0fe2125d170ae966c74f4fc70400e099b1
Diffstat (limited to 'test/attach2.test')
-rw-r--r-- | test/attach2.test | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/attach2.test b/test/attach2.test index f87056854..741f95937 100644 --- a/test/attach2.test +++ b/test/attach2.test @@ -374,8 +374,9 @@ do_test attach2-6.1 { do_test attach2-6.2 { catchsql { ATTACH 'test3.db' as aux2; + DETACH aux2; } -} {1 {cannot ATTACH database within transaction}} +} {0 {}} # EVIDENCE-OF: R-59740-55581 This statement will fail if SQLite is in # the middle of a transaction. @@ -384,13 +385,7 @@ do_test attach2-6.3 { catchsql { DETACH aux; } -} {1 {cannot DETACH database within transaction}} -do_test attach2-6.4 { - execsql { - COMMIT; - DETACH aux; - } -} {} +} {0 {}} db close |