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

Unified Diff: third_party/sqlite/src/test/vtab2.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/vtab1.test ('k') | third_party/sqlite/src/test/vtab4.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/vtab2.test
diff --git a/third_party/sqlite/src/test/vtab2.test b/third_party/sqlite/src/test/vtab2.test
index 05a4834a1bc9db3e4983f3b19962f796d14074ba..f0616513bd1e895a953e14d35f8a5f77333b6d76 100644
--- a/third_party/sqlite/src/test/vtab2.test
+++ b/third_party/sqlite/src/test/vtab2.test
@@ -10,10 +10,10 @@
#***********************************************************************
# This file implements regression tests for SQLite library.
#
-# $Id: vtab2.test,v 1.9 2008/10/13 10:37:50 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
+set testprefix vtab2
ifcapable !vtab||!schema_pragmas {
finish_test
@@ -104,6 +104,14 @@ do_test vtab2-3.2 {
WHERE a.rowid=1
}
} {main schema 0 database {} 0 {} 0 {} {} {} {} {} {} {} {} {}}
+do_test vtab2-3.3 {
+ execsql {
+ SELECT *, b.rowid
+ FROM schema a LEFT JOIN schema b ON a.dflt_value IS b.dflt_value
+ AND a.dflt_value IS NOT NULL
+ WHERE a.rowid=1
+ }
+} {main schema 0 database {} 0 {} 0 {} {} {} {} {} {} {} {} {}}
do_test vtab2-4.1 {
execsql {
@@ -133,4 +141,23 @@ do_test vtab2-4.5 {
execsql { SELECT * FROM fkey }
} {t1 a}
+#-------------------------------------------------------------------------
+#
+ifcapable fts3 {
+ reset_db
+ do_execsql_test 5.1 {
+ PRAGMA encoding='UTF16';
+ }
+
+ do_test 5.2 {
+ sqlite3_exec_hex db { CREATE VIRTUAL TABLE %C8 USING fts3 }
+ } {0 {}}
+
+ do_test 5.3 {
+ sqlite3_exec_hex db { CREATE VIRTUAL TABLE %C9 USING s }
+ } {/1 {malformed database schema.* already exists}/}
+}
+
+
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/vtab1.test ('k') | third_party/sqlite/src/test/vtab4.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698