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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « third_party/sqlite/src/test/attachmalloc.test ('k') | third_party/sqlite/src/test/auth2.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/auth.test
diff --git a/third_party/sqlite/src/test/auth.test b/third_party/sqlite/src/test/auth.test
index 916d8994668dc34047037a4f2c63602d26c2310a..8d2159ecdebb01dbec0bf4115be6916c1c8c4250 100644
--- a/third_party/sqlite/src/test/auth.test
+++ b/third_party/sqlite/src/test/auth.test
@@ -1628,9 +1628,20 @@ ifcapable attach {
ATTACH DATABASE ':memory:' AS test1
}
} {0 {}}
- do_test auth-1.252 {
+ do_test auth-1.252a {
set ::authargs
} {:memory: {} {} {}}
+ do_test auth-1.252b {
+ db eval {DETACH test1}
+ set ::attachfilename :memory:
+ db eval {ATTACH $::attachfilename AS test1}
+ set ::authargs
+ } {{} {} {} {}}
+ do_test auth-1.252c {
+ db eval {DETACH test1}
+ db eval {ATTACH ':mem' || 'ory:' AS test1}
+ set ::authargs
+ } {{} {} {} {}}
do_test auth-1.253 {
catchsql {DETACH DATABASE test1}
proc auth {code arg1 arg2 arg3 arg4} {
@@ -1976,12 +1987,12 @@ ifcapable analyze {
ANALYZE;
}
set ::authargs
- } {t4 {} main {}}
+ } {t4 {} main {} t2 {} main {}}
do_test auth-1.295 {
execsql {
SELECT count(*) FROM sqlite_stat1;
}
- } 2
+ } 3
proc auth {code args} {
if {$code=="SQLITE_ANALYZE"} {
set ::authargs [concat $::authargs $args]
@@ -1999,7 +2010,7 @@ ifcapable analyze {
execsql {
SELECT count(*) FROM sqlite_stat1;
}
- } 2
+ } 3
} ;# ifcapable analyze
@@ -2248,15 +2259,16 @@ do_test auth-4.3 {
set authargs
} [list \
SQLITE_UPDATE v1 x main {} \
- SQLITE_INSERT v1chng {} main r2 \
- SQLITE_READ v1 x main r2 \
- SQLITE_READ v1 x main r2 \
SQLITE_SELECT {} {} {} v1 \
SQLITE_READ t2 a main v1 \
SQLITE_READ t2 b main v1 \
SQLITE_SELECT {} {} {} {} \
SQLITE_READ v1 x main v1 \
+ SQLITE_INSERT v1chng {} main r2 \
+ SQLITE_READ v1 x main r2 \
+ SQLITE_READ v1 x main r2 \
]
+
do_test auth-4.4 {
execsql {
CREATE TRIGGER r3 INSTEAD OF DELETE ON v1 BEGIN
« no previous file with comments | « third_party/sqlite/src/test/attachmalloc.test ('k') | third_party/sqlite/src/test/auth2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698