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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/sqlite/src/test/tt3_vacuum.c ('k') | third_party/sqlite/src/test/uri.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 # 2014-07-30 1 # 2014-07-30
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 do_test $id.1 { 68 do_test $id.1 {
69 db eval {DROP TABLE IF EXISTS t1} 69 db eval {DROP TABLE IF EXISTS t1}
70 db eval $sql 70 db eval $sql
71 db eval {INSERT INTO t1(w,x,y,z) VALUES(1,2,3,4),(2,3,3,4)} 71 db eval {INSERT INTO t1(w,x,y,z) VALUES(1,2,3,4),(2,3,3,4)}
72 } {} 72 } {}
73 do_test $id.2 { 73 do_test $id.2 {
74 catchsql {CREATE UNIQUE INDEX t1yz ON t1(y,z)} 74 catchsql {CREATE UNIQUE INDEX t1yz ON t1(y,z)}
75 } {1 {UNIQUE constraint failed: t1.y, t1.z}} 75 } {1 {UNIQUE constraint failed: t1.y, t1.z}}
76 } 76 }
77 77
78 do_catchsql_test 13.1 {
79 CREATE TABLE err1(a,b,c,UNIQUE(rowid));
80 } {1 {no such column: rowid}}
81 do_catchsql_test 13.2 {
82 CREATE TABLE err1(a,b,c,PRIMARY KEY(rowid));
83 } {1 {no such column: rowid}}
84
85
78 finish_test 86 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tt3_vacuum.c ('k') | third_party/sqlite/src/test/uri.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698