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

Unified Diff: third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5full.test

Issue 2747283002: [sql] Import reference version of SQLite 3.17.. (Closed)
Patch Set: 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
Index: third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5full.test
diff --git a/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5full.test b/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5full.test
new file mode 100644
index 0000000000000000000000000000000000000000..c640f56e0651bcbec0729eb667fc925ac430a820
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5full.test
@@ -0,0 +1,43 @@
+# 2014 Dec 20
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+# Test that SQLITE_FULL is returned if the FTS5 table cannot find a free
+# segid to use. In practice this can only really happen when automerge and
+# crisismerge are both disabled.
+#
+
+source [file join [file dirname [info script]] fts5_common.tcl]
+set testprefix fts5full
+
+# If SQLITE_ENABLE_FTS5 is defined, omit this file.
+ifcapable !fts5 {
+ finish_test
+ return
+}
+
+do_execsql_test 1.0 {
+ CREATE VIRTUAL TABLE x8 USING fts5(i);
+ INSERT INTO x8(x8, rank) VALUES('automerge', 0);
+ INSERT INTO x8(x8, rank) VALUES('crisismerge', 100000);
+}
+
+db func rnddoc fts5_rnddoc
+do_test 1.1 {
+ list [catch {
+ for {set i 0} {$i < 2500} {incr i} {
+ execsql { INSERT INTO x8 VALUES( rnddoc(5) ); }
+ }
+ } msg] $msg
+} {1 {database or disk is full}}
+
+
+finish_test
+

Powered by Google App Engine
This is Rietveld 408576698