OLD | NEW |
1 # 2011 April 9 | 1 # 2011 April 9 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
11 # This file implements regression tests for SQLite library. The | 11 # This file implements regression tests for SQLite library. The |
12 # focus of this file is testing the various schema modification statements | 12 # focus of this file is testing the various schema modification statements |
13 # that feature "IF EXISTS" or "IF NOT EXISTS" clauses. | 13 # that feature "IF EXISTS" or "IF NOT EXISTS" clauses. |
14 # | 14 # |
15 | 15 |
16 set testdir [file dirname $argv0] | 16 set testdir [file dirname $argv0] |
17 source $testdir/tester.tcl | 17 source $testdir/tester.tcl |
18 source $testdir/lock_common.tcl | 18 source $testdir/lock_common.tcl |
19 | 19 |
20 | 20 |
21 foreach jm {rollback wal} { | 21 foreach jm {rollback wal} { |
| 22 if {![wal_is_capable] && $jm=="wal"} continue |
22 | 23 |
23 set testprefix exists-$jm | 24 set testprefix exists-$jm |
24 | 25 |
25 # This block of tests is targeted at CREATE XXX IF NOT EXISTS statements. | 26 # This block of tests is targeted at CREATE XXX IF NOT EXISTS statements. |
26 # | 27 # |
27 do_multiclient_test tn { | 28 do_multiclient_test tn { |
28 | 29 |
29 # TABLE objects. | 30 # TABLE objects. |
30 # | 31 # |
31 do_test 1.$tn.1.1 { | 32 do_test 1.$tn.1.1 { |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 sql1 { DROP TRIGGER IF EXISTS tr1 } | 190 sql1 { DROP TRIGGER IF EXISTS tr1 } |
190 sql2 { CREATE TRIGGER aux.tr1 AFTER INSERT ON t2 BEGIN SELECT 1; END } | 191 sql2 { CREATE TRIGGER aux.tr1 AFTER INSERT ON t2 BEGIN SELECT 1; END } |
191 sql1 { DROP TRIGGER IF EXISTS tr1 } | 192 sql1 { DROP TRIGGER IF EXISTS tr1 } |
192 sql2 { SELECT name FROM aux.sqlite_master WHERE type = 'trigger' } | 193 sql2 { SELECT name FROM aux.sqlite_master WHERE type = 'trigger' } |
193 } {} | 194 } {} |
194 } | 195 } |
195 } | 196 } |
196 | 197 |
197 | 198 |
198 finish_test | 199 finish_test |
OLD | NEW |