Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/src/test/trans3.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/src/test/trans3.test
diff --git a/third_party/sqlite/src/test/trans3.test b/third_party/sqlite/src/test/trans3.test
index ab7db6a277af5b6d53f88e3020e0924390a5db2c..e82844241580d83369c210d104af4fa34a2cec55 100644
--- a/third_party/sqlite/src/test/trans3.test
+++ b/third_party/sqlite/src/test/trans3.test
@@ -52,7 +52,7 @@ do_test trans3-1.4 {
db eval {SELECT * FROM t1}
} {1 2 3 4}
do_test trans3-1.5 {
- db eval BEGIN
+ db eval {BEGIN; CREATE TABLE xyzzy(abc);}
db eval {INSERT INTO t1 VALUES(5);}
set ::ecode {}
set x [catch {
@@ -64,14 +64,13 @@ do_test trans3-1.5 {
}
} errmsg]
lappend x $errmsg
-} {1 {cannot rollback transaction - SQL statements in progress}}
+} {1 {abort due to ROLLBACK}}
do_test trans3-1.6 {
set ::ecode
-} {SQLITE_BUSY}
+} {}
do_test trans3-1.7 {
- db eval COMMIT
db eval {SELECT * FROM t1}
-} {1 2 3 4 5}
+} {1 2 3 4}
unset -nocomplain ecode
finish_test

Powered by Google App Engine
This is Rietveld 408576698