SQLite

Check-in [709f2aa18a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 709f2aa18a4802a7ca6638c00b2b99440b4a3191
User & Date: shess 2007-08-20 17:53:00.000
Context
2007-08-20
22:48
Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (check-in: 1315bd8e12 user: drh tags: trunk)
17:53
Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252) (check-in: 709f2aa18a user: shess tags: trunk)
17:38
Replicate the fts2*.test files as fts3a*.test, and convert fts2 to fts3 in the text of the files. (CVS 4251) (check-in: 24739f148e user: shess tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Deleted test/fts3ap.test.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 2007 August 9
#
# The author disclaims copyright to this source code.
#
#*************************************************************************
# This file implements regression tests for SQLite library.  The
# DELETE handling required the current data to not contain nulls.
# This verifies that we don't add that assumption back in.
#
# $Id: fts3ap.test,v 1.1 2007/08/20 17:38:42 shess Exp $
#

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# If SQLITE_ENABLE_FTS3 is defined, omit this file.
ifcapable !fts3 {
  finish_test
  return
}

db eval {
  CREATE VIRTUAL TABLE t1 USING fts3(col_a, col_b);

  INSERT INTO t1(rowid, col_a, col_b) VALUES(1, 'testing', 'testing');
  INSERT INTO t1(rowid, col_a, col_b) VALUES(2, 'only a', null);
  INSERT INTO t1(rowid, col_a, col_b) VALUES(3, null, 'only b');
  INSERT INTO t1(rowid, col_a, col_b) VALUES(4, null, null);

  INSERT INTO t1(rowid, col_a, col_b) VALUES(5, 'testing', 'testing');
  INSERT INTO t1(rowid, col_a, col_b) VALUES(6, 'only a', null);
  INSERT INTO t1(rowid, col_a, col_b) VALUES(7, null, 'only b');
  INSERT INTO t1(rowid, col_a, col_b) VALUES(8, null, null);
}

do_test fts3an-1.1 {
  execsql "-- REPLACE INTO t1 (rowid, col_a, col_b) VALUES (1, 'text', 'text')"
} {}

do_test fts3an-1.2 {
  execsql "-- INSERT OR REPLACE INTO t1 (rowid, col_a, col_b) VALUES (1, 'text', 'text')"
} {}

finish_test
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<