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 #***********************************************************************
12 # This file implements tests for sqlite3_vtab_distinct() interface.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
17 set testprefix vtabdistinct
23 load_static_extension db qpvtab
26 SELECT ix FROM qpvtab WHERE vn='sqlite3_vtab_distinct';
29 SELECT DISTINCT ix FROM qpvtab WHERE vn='sqlite3_vtab_distinct';
32 SELECT distinct vn, ix FROM qpvtab(3)
33 WHERE +vn IN ('sqlite3_vtab_distinct','nOrderBy');
34 } {nOrderBy 2 sqlite3_vtab_distinct 2}
36 SELECT vn, ix FROM qpvtab
38 HAVING vn='sqlite3_vtab_distinct';
39 } {sqlite3_vtab_distinct 1}