OLD | NEW |
1 # 2007 January 24 | 1 # 2007 January 24 |
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 set ::sqlite3_xferopt_count 0 | 294 set ::sqlite3_xferopt_count 0 |
295 execsql { | 295 execsql { |
296 DROP INDEX t2_i1; | 296 DROP INDEX t2_i1; |
297 CREATE INDEX t2_i1 ON t2(x ASC, y COLLATE RTRIM); | 297 CREATE INDEX t2_i1 ON t2(x ASC, y COLLATE RTRIM); |
298 INSERT INTO t2 SELECT * FROM t3; | 298 INSERT INTO t2 SELECT * FROM t3; |
299 } | 299 } |
300 set ::sqlite3_xferopt_count | 300 set ::sqlite3_xferopt_count |
301 } {0} | 301 } {0} |
302 | 302 |
303 | 303 |
304 | 304 do_test insert4-6.5 { |
| 305 execsql { |
| 306 CREATE TABLE t6a(x CHECK( x<>'abc' )); |
| 307 INSERT INTO t6a VALUES('ABC'); |
| 308 SELECT * FROM t6a; |
| 309 } |
| 310 } {ABC} |
| 311 do_test insert4-6.6 { |
| 312 execsql { |
| 313 CREATE TABLE t6b(x CHECK( x<>'abc' COLLATE nocase )); |
| 314 } |
| 315 catchsql { |
| 316 INSERT INTO t6b SELECT * FROM t6a; |
| 317 } |
| 318 } {1 {constraint failed}} |
| 319 do_test insert4-6.7 { |
| 320 execsql { |
| 321 DROP TABLE t6b; |
| 322 CREATE TABLE t6b(x CHECK( x COLLATE nocase <>'abc' )); |
| 323 } |
| 324 catchsql { |
| 325 INSERT INTO t6b SELECT * FROM t6a; |
| 326 } |
| 327 } {1 {constraint failed}} |
305 | 328 |
306 finish_test | 329 finish_test |
OLD | NEW |