1# 2006 June 10 2# 3# The author disclaims copyright to this source code. In place of 4# a legal notice, here is a blessing: 5# 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. 9# 10#*********************************************************************** 11# This file implements regression tests for SQLite library. 12# 13# $Id: vtab2.test,v 1.1 2006/06/17 11:30:33 danielk1977 Exp $ 14 15set testdir [file dirname $argv0] 16source $testdir/tester.tcl 17 18ifcapable !vtab { 19 finish_test 20 return 21} 22 23register_schema_module [sqlite3_connection_pointer db] 24do_test vtab2-1.1 { 25 execsql { 26 CREATE VIRTUAL TABLE schema USING schema; 27 SELECT * FROM schema; 28 } 29} [list \ 30 main schema 0 database {} 0 {} 0 \ 31 main schema 1 tablename {} 0 {} 0 \ 32 main schema 2 cid {} 0 {} 0 \ 33 main schema 3 name {} 0 {} 0 \ 34 main schema 4 type {} 0 {} 0 \ 35 main schema 5 not_null {} 0 {} 0 \ 36 main schema 6 dflt_value {} 0 {} 0 \ 37 main schema 7 pk {} 0 {} 0 \ 38] 39 40finish_test 41 42