mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix test cases so that they all still work even with -DSQLITE_DQS=0.
FossilOrigin-Name: 4883776669ee2f2310ea82b0d6df4d008eebaa7cb252102539cf21a635402ebb
This commit is contained in:
@ -6,8 +6,6 @@
|
||||
# This file implements regression tests for SQLite library. This
|
||||
# tests creating fts3 tables in an attached database.
|
||||
#
|
||||
# $Id: fts3aj.test,v 1.1 2007/08/20 17:38:42 shess Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -25,14 +23,14 @@ sqlite3 db2 test2.db
|
||||
|
||||
db eval {
|
||||
CREATE VIRTUAL TABLE t3 USING fts3(content);
|
||||
INSERT INTO t3 (rowid, content) VALUES(1, "hello world");
|
||||
INSERT INTO t3 (rowid, content) VALUES(1, 'hello world');
|
||||
}
|
||||
|
||||
db2 eval {
|
||||
CREATE VIRTUAL TABLE t1 USING fts3(content);
|
||||
INSERT INTO t1 (rowid, content) VALUES(1, "hello world");
|
||||
INSERT INTO t1 (rowid, content) VALUES(2, "hello there");
|
||||
INSERT INTO t1 (rowid, content) VALUES(3, "cruel world");
|
||||
INSERT INTO t1 (rowid, content) VALUES(1, 'hello world');
|
||||
INSERT INTO t1 (rowid, content) VALUES(2, 'hello there');
|
||||
INSERT INTO t1 (rowid, content) VALUES(3, 'cruel world');
|
||||
}
|
||||
|
||||
# This has always worked because the t1_* tables used by fts3 will be
|
||||
@ -56,9 +54,9 @@ do_test fts3aj-1.2 {
|
||||
execsql {
|
||||
ATTACH DATABASE 'test2.db' AS two;
|
||||
CREATE VIRTUAL TABLE two.t2 USING fts3(content);
|
||||
INSERT INTO t2 (rowid, content) VALUES(1, "hello world");
|
||||
INSERT INTO t2 (rowid, content) VALUES(2, "hello there");
|
||||
INSERT INTO t2 (rowid, content) VALUES(3, "cruel world");
|
||||
INSERT INTO t2 (rowid, content) VALUES(1, 'hello world');
|
||||
INSERT INTO t2 (rowid, content) VALUES(2, 'hello there');
|
||||
INSERT INTO t2 (rowid, content) VALUES(3, 'cruel world');
|
||||
SELECT rowid FROM t2 WHERE t2 MATCH 'hello';
|
||||
DETACH DATABASE two;
|
||||
}
|
||||
@ -74,8 +72,8 @@ do_test fts3aj-1.3 {
|
||||
ATTACH DATABASE 'test2.db' AS two;
|
||||
|
||||
CREATE VIRTUAL TABLE two.t3 USING fts3(content);
|
||||
INSERT INTO two.t3 (rowid, content) VALUES(2, "hello there");
|
||||
INSERT INTO two.t3 (rowid, content) VALUES(3, "cruel world");
|
||||
INSERT INTO two.t3 (rowid, content) VALUES(2, 'hello there');
|
||||
INSERT INTO two.t3 (rowid, content) VALUES(3, 'cruel world');
|
||||
SELECT rowid FROM two.t3 WHERE t3 MATCH 'hello';
|
||||
|
||||
DETACH DATABASE two;
|
||||
|
Reference in New Issue
Block a user