diff options
Diffstat (limited to 'third_party/sqlite/src/test/conflict.test')
-rw-r--r-- | third_party/sqlite/src/test/conflict.test | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/third_party/sqlite/src/test/conflict.test b/third_party/sqlite/src/test/conflict.test index 17c7263..44390d2 100644 --- a/third_party/sqlite/src/test/conflict.test +++ b/third_party/sqlite/src/test/conflict.test @@ -307,7 +307,7 @@ foreach {i conf1 cmd t0 t1 t2 t3 t4} { 16 {} {UPDATE OR ROLLBACK} 1 {1 2 3 4} 0 0 0 } { if {$t0} {set t1 {column a is not unique}} - if {[info exists TEMP_STORE] && $TEMP_STORE==3} { + if {[info exists TEMP_STORE] && $TEMP_STORE>=2} { set t3 0 } else { set t3 [expr {$t3+$t4}] @@ -789,26 +789,4 @@ do_test conflict-12.4 { } {2 one} -# Ticket [c38baa3d969eab7946dc50ba9d9b4f0057a19437] -# REPLACE works like ABORT on a CHECK constraint. -# -do_test conflict-13.1 { - execsql { - CREATE TABLE t13(a CHECK(a!=2)); - BEGIN; - REPLACE INTO t13 VALUES(1); - } - catchsql { - REPLACE INTO t13 VALUES(2); - } -} {1 {constraint failed}} -do_test conflict-13.2 { - execsql { - REPLACE INTO t13 VALUES(3); - COMMIT; - SELECT * FROM t13; - } -} {1 3} - - finish_test |