OLD | NEW |
1 # 2008 June 9 | 1 # 2008 June 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 #*********************************************************************** |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 INSERT INTO t3 VALUES(5, 'eeeeeeeeeeeeeeeeeeee'); | 390 INSERT INTO t3 VALUES(5, 'eeeeeeeeeeeeeeeeeeee'); |
391 } | 391 } |
392 } {} | 392 } {} |
393 do_test incrblob2-8.4 { | 393 do_test incrblob2-8.4 { |
394 execsql BEGIN | 394 execsql BEGIN |
395 set h [db incrblob t3 b 3] | 395 set h [db incrblob t3 b 3] |
396 sqlite3_blob_read $h 0 20 | 396 sqlite3_blob_read $h 0 20 |
397 } {cccccccccccccccccccc} | 397 } {cccccccccccccccccccc} |
398 do_test incrblob2-8.5 { | 398 do_test incrblob2-8.5 { |
399 catchsql {UPDATE t3 SET a = 6 WHERE a > 3} | 399 catchsql {UPDATE t3 SET a = 6 WHERE a > 3} |
400 } {1 {column a is not unique}} | 400 } {1 {UNIQUE constraint failed: t3.a}} |
401 do_test incrblob2-8.6 { | 401 do_test incrblob2-8.6 { |
402 catchsql {UPDATE t3 SET a = 6 WHERE a > 3} | 402 catchsql {UPDATE t3 SET a = 6 WHERE a > 3} |
403 } {1 {column a is not unique}} | 403 } {1 {UNIQUE constraint failed: t3.a}} |
404 do_test incrblob2-8.7 { | 404 do_test incrblob2-8.7 { |
405 sqlite3_blob_read $h 0 20 | 405 sqlite3_blob_read $h 0 20 |
406 } {cccccccccccccccccccc} | 406 } {cccccccccccccccccccc} |
407 do_test incrblob2-8.8 { | 407 do_test incrblob2-8.8 { |
408 catchsql {UPDATE t3 SET a = 6 WHERE a = 3 OR a = 5} | 408 catchsql {UPDATE t3 SET a = 6 WHERE a = 3 OR a = 5} |
409 } {1 {column a is not unique}} | 409 } {1 {UNIQUE constraint failed: t3.a}} |
410 do_test incrblob2-8.9 { | 410 do_test incrblob2-8.9 { |
411 set rc [catch {sqlite3_blob_read $h 0 20} msg] | 411 set rc [catch {sqlite3_blob_read $h 0 20} msg] |
412 list $rc $msg | 412 list $rc $msg |
413 } {1 SQLITE_ABORT} | 413 } {1 SQLITE_ABORT} |
414 do_test incrblob2-8.X { | 414 do_test incrblob2-8.X { |
415 close $h | 415 close $h |
416 } {} | 416 } {} |
417 | 417 |
418 finish_test | 418 finish_test |
OLD | NEW |