/ Check-in [cad5da1b]
Login

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

Overview
Comment:Fix cut-and-paste error in test file fts4umlaut.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cad5da1bf5f65ad87d97b72e9a84081fde455ba4085e79943fdf6c0144b1ef83
User & Date: dan 2018-12-22 07:16:42
Context
2018-12-22
09:39
Avoid a left-shift of a negative value (undefined behaviour) when dealing with a corrupt database in fts3. check-in: b851d124 user: dan tags: trunk
07:16
Fix cut-and-paste error in test file fts4umlaut.test. check-in: cad5da1b user: dan tags: trunk
01:13
Do not all REPLACE to sneak a NULL value into a NOT NULL column. Detect that situation and ABORT instead. Fix for ticket [e6f1f2e34dceeb1ed61531c7e98]. check-in: db8d1d12 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fts4umlaut.test.

    12     12   # focus of this script is testing the FTS5 module.
    13     13   #
    14     14   
    15     15   set testdir [file dirname $argv0]
    16     16   source $testdir/tester.tcl
    17     17   set testprefix fts4umlaut
    18     18   
    19         -ifcapable !fts3||!fts5 {
           19  +ifcapable !fts3 {
    20     20     finish_test
    21     21     return
    22     22   }
    23     23   
    24     24   do_execsql_test 1.0 {
    25         -  CREATE VIRTUAL TABLE t1 USING fts5(x);
           25  +  CREATE VIRTUAL TABLE t1 USING fts4(x, tokenize=unicode61);
    26     26     CREATE VIRTUAL TABLE t2 USING fts4(
    27     27         x, 
    28     28         tokenize=unicode61 "remove_diacritics=2"
    29     29     );
    30     30   }
    31     31   
    32     32   foreach {tn q res1 res2} {
................................................................................
    45     45     } $res1
    46     46     do_execsql_test 1.$tn.2 {
    47     47       DELETE FROM t1;
    48     48       INSERT INTO t1(rowid, x) VALUES (1, $q);
    49     49       SELECT count(*) FROM t1 WHERE t1 MATCH 'Ha Noi'
    50     50     } $res1
    51     51   
    52         -  do_execsql_test 1.$tn.2 {
           52  +  do_execsql_test 1.$tn.3 {
    53     53       DELETE FROM t2;
    54     54       INSERT INTO t2(rowid, x) VALUES (1, 'Ha Noi');
    55     55       SELECT count(*) FROM t2 WHERE t2 MATCH $q
    56     56     } $res2
    57         -  do_execsql_test 1.$tn.2 {
           57  +  do_execsql_test 1.$tn.4 {
    58     58       DELETE FROM t2;
    59     59       INSERT INTO t2(rowid, x) VALUES (1, $q);
    60     60       SELECT count(*) FROM t2 WHERE t2 MATCH 'Ha Noi'
    61     61     } $res2
    62     62   }
    63     63   
    64     64   finish_test