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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/auth3.test ('k') | third_party/sqlite/src/test/autoindex2.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/autoinc.test
diff --git a/third_party/sqlite/src/test/autoinc.test b/third_party/sqlite/src/test/autoinc.test
index 239600616bc2755f96f14406c7f85f6fe3025e41..8ac12b1772153f7aef424c5ac9e6d22c6f1c996f 100644
--- a/third_party/sqlite/src/test/autoinc.test
+++ b/third_party/sqlite/src/test/autoinc.test
@@ -344,7 +344,7 @@ ifcapable tempdb {
do_test autoinc-4.1 {
execsql {
SELECT 1, name FROM sqlite_master WHERE type='table';
- SELECT 2, name FROM sqlite_temp_master WHERE type='table';
+ SELECT 2, name FROM temp.sqlite_master WHERE type='table';
}
} {1 sqlite_sequence}
do_test autoinc-4.2 {
@@ -663,6 +663,18 @@ ifcapable trigger {
} {1 124 2 10123}
}
+# 2016-10-03 ticket https://www.sqlite.org/src/tktview/7b3328086a5c1
+# Make sure autoincrement plays nicely with the xfer optimization
+#
+do_execsql_test autoinc-10.1 {
+ DELETE FROM sqlite_sequence;
+ CREATE TABLE t10a(a INTEGER PRIMARY KEY AUTOINCREMENT, b UNIQUE);
+ INSERT INTO t10a VALUES(888,9999);
+ CREATE TABLE t10b(x INTEGER PRIMARY KEY AUTOINCREMENT, y UNIQUE);
+ INSERT INTO t10b SELECT * FROM t10a;
+ SELECT * FROM sqlite_sequence;
+} {t10a 888 t10b 888}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/auth3.test ('k') | third_party/sqlite/src/test/autoindex2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698