sl@0: # 2005 September 17 sl@0: # sl@0: # The author disclaims copyright to this source code. In place of sl@0: # a legal notice, here is a blessing: sl@0: # sl@0: # May you do good and not evil. sl@0: # May you find forgiveness for yourself and forgive others. sl@0: # May you share freely, never taking more than you give. sl@0: # sl@0: #*********************************************************************** sl@0: # This file implements regression tests for SQLite library. Specifically. sl@0: # it contains tests to verify that ticket #2285 has been fixed. sl@0: # sl@0: # $Id: tkt2285.test,v 1.2 2008/07/12 14:52:20 drh Exp $ sl@0: sl@0: set testdir [file dirname $argv0] sl@0: source $testdir/tester.tcl sl@0: sl@0: ifcapable !tempdb { sl@0: finish_test sl@0: return sl@0: } sl@0: sl@0: do_test tkt2285-1.1 { sl@0: execsql { sl@0: PRAGMA locking_mode = EXCLUSIVE; sl@0: } sl@0: execsql { sl@0: BEGIN; sl@0: CREATE TABLE abc(a, b, c); sl@0: ROLLBACK; sl@0: } sl@0: } {} sl@0: sl@0: do_test tkt2285-1.2 { sl@0: execsql { sl@0: SELECT * FROM sqlite_master; sl@0: } sl@0: } {} sl@0: sl@0: ifcapable tempdb { sl@0: do_test tkt2285-2.1 { sl@0: execsql { sl@0: BEGIN; sl@0: CREATE TEMP TABLE abc(a, b, c); sl@0: ROLLBACK; sl@0: } sl@0: } {} sl@0: do_test tkt2285-2.2 { sl@0: execsql { sl@0: SELECT * FROM sqlite_temp_master; sl@0: } sl@0: } {} sl@0: } sl@0: sl@0: finish_test