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

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

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « third_party/sqlite/src/test/keyword1.test ('k') | third_party/sqlite/src/test/like.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/lastinsert.test
diff --git a/third_party/sqlite/src/test/lastinsert.test b/third_party/sqlite/src/test/lastinsert.test
index adeb79860b1dc56a8e25a053e9bd78a7510059aa..c5bc267d1a23ef5c96970851e32bff53920bad83 100644
--- a/third_party/sqlite/src/test/lastinsert.test
+++ b/third_party/sqlite/src/test/lastinsert.test
@@ -36,6 +36,17 @@ do_test lastinsert-1.1 {
}
} {0 3}
+# EVIDENCE-OF: R-47220-63683 The sqlite3_last_insert_rowid() function
+# does not work for WITHOUT ROWID tables.
+#
+do_test lastinsert-1.1w {
+ catchsql {
+ create table t1w (k integer primary key) WITHOUT ROWID;
+ insert into t1w values (123456);
+ select last_insert_rowid(); -- returns 3 from above.
+ }
+} {0 3}
+
# LIRID unchanged after an update on a table
do_test lastinsert-1.2 {
catchsql {
« no previous file with comments | « third_party/sqlite/src/test/keyword1.test ('k') | third_party/sqlite/src/test/like.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698