author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
# 2005 September 17 |
sl@0 | 2 |
# |
sl@0 | 3 |
# The author disclaims copyright to this source code. In place of |
sl@0 | 4 |
# a legal notice, here is a blessing: |
sl@0 | 5 |
# |
sl@0 | 6 |
# May you do good and not evil. |
sl@0 | 7 |
# May you find forgiveness for yourself and forgive others. |
sl@0 | 8 |
# May you share freely, never taking more than you give. |
sl@0 | 9 |
# |
sl@0 | 10 |
#*********************************************************************** |
sl@0 | 11 |
# This file implements regression tests for SQLite library. Specifically. |
sl@0 | 12 |
# it contains tests to verify that ticket #2285 has been fixed. |
sl@0 | 13 |
# |
sl@0 | 14 |
# $Id: tkt2285.test,v 1.2 2008/07/12 14:52:20 drh Exp $ |
sl@0 | 15 |
|
sl@0 | 16 |
set testdir [file dirname $argv0] |
sl@0 | 17 |
source $testdir/tester.tcl |
sl@0 | 18 |
|
sl@0 | 19 |
ifcapable !tempdb { |
sl@0 | 20 |
finish_test |
sl@0 | 21 |
return |
sl@0 | 22 |
} |
sl@0 | 23 |
|
sl@0 | 24 |
do_test tkt2285-1.1 { |
sl@0 | 25 |
execsql { |
sl@0 | 26 |
PRAGMA locking_mode = EXCLUSIVE; |
sl@0 | 27 |
} |
sl@0 | 28 |
execsql { |
sl@0 | 29 |
BEGIN; |
sl@0 | 30 |
CREATE TABLE abc(a, b, c); |
sl@0 | 31 |
ROLLBACK; |
sl@0 | 32 |
} |
sl@0 | 33 |
} {} |
sl@0 | 34 |
|
sl@0 | 35 |
do_test tkt2285-1.2 { |
sl@0 | 36 |
execsql { |
sl@0 | 37 |
SELECT * FROM sqlite_master; |
sl@0 | 38 |
} |
sl@0 | 39 |
} {} |
sl@0 | 40 |
|
sl@0 | 41 |
ifcapable tempdb { |
sl@0 | 42 |
do_test tkt2285-2.1 { |
sl@0 | 43 |
execsql { |
sl@0 | 44 |
BEGIN; |
sl@0 | 45 |
CREATE TEMP TABLE abc(a, b, c); |
sl@0 | 46 |
ROLLBACK; |
sl@0 | 47 |
} |
sl@0 | 48 |
} {} |
sl@0 | 49 |
do_test tkt2285-2.2 { |
sl@0 | 50 |
execsql { |
sl@0 | 51 |
SELECT * FROM sqlite_temp_master; |
sl@0 | 52 |
} |
sl@0 | 53 |
} {} |
sl@0 | 54 |
} |
sl@0 | 55 |
|
sl@0 | 56 |
finish_test |