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

Unified Diff: third_party/sqlite/src/test/tkt3838.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/tkt3793.test ('k') | third_party/sqlite/src/test/tkt3918.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt3838.test
diff --git a/third_party/sqlite/src/test/tkt3838.test b/third_party/sqlite/src/test/tkt3838.test
index 4fb5c55a8a24be3d2eae8314f415cb43bf9d4f67..fa937acdf4ea2f5b7024443ff2eafb9f29a8bea3 100644
--- a/third_party/sqlite/src/test/tkt3838.test
+++ b/third_party/sqlite/src/test/tkt3838.test
@@ -25,7 +25,7 @@ ifcapable !altertable {
return
}
-do_test tkt3838-1.1 {
+do_realnum_test tkt3838-1.1 {
db eval {
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
@@ -38,4 +38,21 @@ do_test tkt3838-1.1 {
}
} {2 999 9e+99 xyzzy}
+ifcapable trigger {
+ do_test tkt3838-1.2 {
+ db eval {
+ CREATE TABLE log(y);
+ CREATE TRIGGER r1 AFTER INSERT ON T1 BEGIN
+ INSERT INTO log VALUES(new.x);
+ END;
+ INSERT INTO t1(x) VALUES(123);
+ ALTER TABLE T1 RENAME TO XYZ2;
+ INSERT INTO xyz2(x) VALUES(456);
+ ALTER TABLE xyz2 RENAME TO pqr3;
+ INSERT INTO pqr3(x) VALUES(789);
+ SELECT * FROM log;
+ }
+ } {123 456 789}
+}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt3793.test ('k') | third_party/sqlite/src/test/tkt3918.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698