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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/insert4.test
diff --git a/third_party/sqlite/src/test/insert4.test b/third_party/sqlite/src/test/insert4.test
index 7e876122f02d6a1ad889f0427e8d3d47716260bb..0b069e996dd1a7495fae065f70e9ab7ba6d7beec 100644
--- a/third_party/sqlite/src/test/insert4.test
+++ b/third_party/sqlite/src/test/insert4.test
@@ -301,6 +301,29 @@ do_test insert4-6.4 {
} {0}
-
+do_test insert4-6.5 {
+ execsql {
+ CREATE TABLE t6a(x CHECK( x<>'abc' ));
+ INSERT INTO t6a VALUES('ABC');
+ SELECT * FROM t6a;
+ }
+} {ABC}
+do_test insert4-6.6 {
+ execsql {
+ CREATE TABLE t6b(x CHECK( x<>'abc' COLLATE nocase ));
+ }
+ catchsql {
+ INSERT INTO t6b SELECT * FROM t6a;
+ }
+} {1 {constraint failed}}
+do_test insert4-6.7 {
+ execsql {
+ DROP TABLE t6b;
+ CREATE TABLE t6b(x CHECK( x COLLATE nocase <>'abc' ));
+ }
+ catchsql {
+ INSERT INTO t6b SELECT * FROM t6a;
+ }
+} {1 {constraint failed}}
finish_test
« 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