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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/sqllog.test ('k') | third_party/sqlite/src/test/statfault.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/stat.test
diff --git a/third_party/sqlite/src/test/stat.test b/third_party/sqlite/src/test/stat.test
index f0447e450935dcc45cfcda374db51a70824ff5b2..57c1b9eae166b684cd579dda324cd46d53b683fc 100644
--- a/third_party/sqlite/src/test/stat.test
+++ b/third_party/sqlite/src/test/stat.test
@@ -166,8 +166,10 @@ sqlite3 db test.db
register_dbstat_vtab db
do_execsql_test stat-5.1 {
PRAGMA auto_vacuum = OFF;
- CREATE VIRTUAL TABLE temp.stat USING dbstat;
- CREATE TABLE t1(x);
+ CREATE TABLE tx(y);
+ ATTACH ':memory:' AS aux1;
+ CREATE VIRTUAL TABLE temp.stat USING dbstat(aux1);
+ CREATE TABLE aux1.t1(x);
INSERT INTO t1 VALUES(zeroblob(1513));
INSERT INTO t1 VALUES(zeroblob(1514));
SELECT name, path, pageno, pagetype, ncell, payload, unused, mx_payload
@@ -178,4 +180,8 @@ do_execsql_test stat-5.1 {
t1 /001+000000 4 overflow 0 1020 0 0 \
]
+do_catchsql_test stat-6.1 {
+ CREATE VIRTUAL TABLE temp.s2 USING dbstat(mainx);
+} {1 {no such database: mainx}}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/sqllog.test ('k') | third_party/sqlite/src/test/statfault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698