Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: third_party/sqlite/src/test/insert4.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/init.test ('k') | third_party/sqlite/src/test/intarray.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/init.test ('k') | third_party/sqlite/src/test/intarray.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698