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

Unified Diff: third_party/sqlite/src/test/tkt3992.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/tkt3929.test ('k') | third_party/sqlite/src/test/trace.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt3992.test
diff --git a/third_party/sqlite/src/test/tkt3992.test b/third_party/sqlite/src/test/tkt3992.test
index a3fac63ddc0e7da79d144f2f6c2f824ca6f5ff7b..0d8a30f94d7386617765b374e184ae4c586dac22 100644
--- a/third_party/sqlite/src/test/tkt3992.test
+++ b/third_party/sqlite/src/test/tkt3992.test
@@ -44,34 +44,38 @@ do_test tkt3992-1.3 {
}
} {2 1.0}
-do_test tkt3992-2.1 {
- execsql {
- CREATE TABLE t1(a, b);
- INSERT INTO t1 VALUES(1, 2);
- ALTER TABLE t1 ADD COLUMN c DEFAULT 3;
- SELECT * FROM t1;
- }
-} {1 2 3}
-do_test tkt3992-2.2 {
- execsql {
- UPDATE t1 SET a = 'one';
- SELECT * FROM t1;
- }
-} {one 2 3}
+ifcapable altertable {
+ do_test tkt3992-2.1 {
+ execsql {
+ CREATE TABLE t1(a, b);
+ INSERT INTO t1 VALUES(1, 2);
+ ALTER TABLE t1 ADD COLUMN c DEFAULT 3;
+ SELECT * FROM t1;
+ }
+ } {1 2 3}
+ do_test tkt3992-2.2 {
+ execsql {
+ UPDATE t1 SET a = 'one';
+ SELECT * FROM t1;
+ }
+ } {one 2 3}
+}
-db function tcl eval
-do_test tkt3992-2.3 {
- execsql {
- CREATE TABLE t2(a REAL, b REAL, c REAL);
- INSERT INTO t2 VALUES(1, 2, 3);
- CREATE TRIGGER tr2 BEFORE UPDATE ON t2 BEGIN
- SELECT tcl('set res', typeof(new.c));
- END;
-
- UPDATE t2 SET a = 'I';
- }
- set res
-} {real}
+ifcapable trigger {
+ db function tcl eval
+ do_test tkt3992-2.3 {
+ execsql {
+ CREATE TABLE t2(a REAL, b REAL, c REAL);
+ INSERT INTO t2 VALUES(1, 2, 3);
+ CREATE TRIGGER tr2 BEFORE UPDATE ON t2 BEGIN
+ SELECT tcl('set res', typeof(new.c));
+ END;
+
+ UPDATE t2 SET a = 'I';
+ }
+ set res
+ } {real}
+}
finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt3929.test ('k') | third_party/sqlite/src/test/trace.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698