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

Side by Side Diff: third_party/sqlite/src/ext/fts5/test/fts5ai.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 unified diff | Download patch
OLDNEW
1 # 2014 June 17 1 # 2014 June 17
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #************************************************************************* 10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The 11 # This file implements regression tests for SQLite library. The
12 # focus of this script is testing the FTS5 module. 12 # focus of this script is testing the FTS5 module.
13 # 13 #
14 # Specifically, it tests transactions and savepoints 14 # Specifically, it tests transactions and savepoints
15 # 15 #
16 16
17 source [file join [file dirname [info script]] fts5_common.tcl] 17 source [file join [file dirname [info script]] fts5_common.tcl]
18 set testprefix fts5ai 18 set testprefix fts5ai
19 19
20 # If SQLITE_ENABLE_FTS5 is defined, omit this file. 20 # If SQLITE_ENABLE_FTS5 is defined, omit this file.
21 ifcapable !fts5 { 21 ifcapable !fts5 {
22 finish_test 22 finish_test
23 return 23 return
24 } 24 }
25 25
26 foreach_detail_mode $testprefix {
27
26 do_execsql_test 1.0 { 28 do_execsql_test 1.0 {
27 CREATE VIRTUAL TABLE t1 USING fts5(a); 29 CREATE VIRTUAL TABLE t1 USING fts5(a, detail=%DETAIL%);
28 } {} 30 } {}
29 31
30 do_execsql_test 1.1 { 32 do_execsql_test 1.1 {
31 BEGIN; 33 BEGIN;
32 INSERT INTO t1 VALUES('a b c'); 34 INSERT INTO t1 VALUES('a b c');
33 INSERT INTO t1 VALUES('d e f'); 35 INSERT INTO t1 VALUES('d e f');
34 SAVEPOINT one; 36 SAVEPOINT one;
35 INSERT INTO t1 VALUES('g h i'); 37 INSERT INTO t1 VALUES('g h i');
36 SAVEPOINT two; 38 SAVEPOINT two;
37 INSERT INTO t1 VALUES('j k l'); 39 INSERT INTO t1 VALUES('j k l');
38 ROLLBACK TO one; 40 ROLLBACK TO one;
39 INSERT INTO t1 VALUES('m n o'); 41 INSERT INTO t1 VALUES('m n o');
40 SAVEPOINT two; 42 SAVEPOINT two;
41 INSERT INTO t1 VALUES('p q r'); 43 INSERT INTO t1 VALUES('p q r');
42 RELEASE one; 44 RELEASE one;
43 SAVEPOINT one; 45 SAVEPOINT one;
44 INSERT INTO t1 VALUES('s t u'); 46 INSERT INTO t1 VALUES('s t u');
45 ROLLBACK TO one; 47 ROLLBACK TO one;
46 COMMIT; 48 COMMIT;
47 } 49 }
48 50
49 do_execsql_test 1.2 { 51 do_execsql_test 1.2 {
50 INSERT INTO t1(t1) VALUES('integrity-check'); 52 INSERT INTO t1(t1) VALUES('integrity-check');
51 } 53 }
54 }
52 55
53 56
54 finish_test 57 finish_test
55 58
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5ah.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5ak.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698