3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this script is testing the FTS5 module.
15 source [file join [file dirname [info script]] fts5_common.tcl]
16 set testprefix fts5leftjoin
18 # If SQLITE_ENABLE_FTS5 is not defined, omit this file.
25 CREATE VIRTUAL TABLE vt USING fts5(x);
26 INSERT INTO vt VALUES('abc');
27 INSERT INTO vt VALUES('xyz');
29 CREATE TABLE t1(a INTEGER PRIMARY KEY);
30 INSERT INTO t1 VALUES(1), (2);
34 SELECT * FROM t1 LEFT JOIN (
35 SELECT rowid AS rrr, * FROM vt WHERE vt MATCH 'abc'
40 SELECT * FROM t1 LEFT JOIN vt ON (vt MATCH 'abc')