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.
13 # This file implements tests for the PRAGMA command. Specifically,
14 # those pragmas that are not disabled at build time by setting:
16 # -DSQLITE_OMIT_INTROSPECTION_PRAGMAS
19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl
21 set testprefix pragma5
23 if { [catch {db one "SELECT count(*) FROM pragma_function_list"}] } {
28 db function external external
31 PRAGMA table_info(pragma_function_list)
41 SELECT DISTINCT name, builtin
42 FROM pragma_function_list WHERE name='upper' AND builtin
45 SELECT DISTINCT name, builtin
46 FROM pragma_function_list WHERE name LIKE 'exter%';
51 PRAGMA table_info(pragma_module_list)
56 SELECT * FROM pragma_module_list WHERE name='fts5'
61 PRAGMA table_info(pragma_pragma_list)
66 SELECT * FROM pragma_pragma_list WHERE name='pragma_list'