aboutsummaryrefslogtreecommitdiff
path: root/test/attach2.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/attach2.test')
-rw-r--r--test/attach2.test11
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