Index: third_party/sqlite/src/test/misc4.test |
diff --git a/third_party/sqlite/src/test/misc4.test b/third_party/sqlite/src/test/misc4.test |
index 59c1d118ac7c5f785b5f4cd7101b0078c1f7f2b2..79e756ec631bb111c31eab0f0e4a38be1e9fc758 100644 |
--- a/third_party/sqlite/src/test/misc4.test |
+++ b/third_party/sqlite/src/test/misc4.test |
@@ -208,4 +208,25 @@ do_test misc4-6.2 { |
} |
} {1} |
+# 2015-05-15. Error message formatting problem. |
+# |
+db close |
+sqlite3 db :memory: |
+do_catchsql_test misc4-7.1 { |
+ CREATE TABLE t7(x); |
+ PRAGMA writable_schema=ON; |
+ UPDATE sqlite_master SET sql='CREATE TABLE [M%s%s%s%s%s%s%s%s%s%s%s%s%s'; |
+ VACUUM; |
+} {1 {unrecognized token: "[M%s%s%s%s%s%s%s%s%s%s%s%s%s"}} |
+ |
+# 2015-05-18. Use of ephermeral Mem content after the cursor that holds |
+# the canonical content has moved on. |
+# |
+do_execsql_test misc4-7.2 { |
+ CREATE TABLE t0(a,b); |
+ INSERT INTO t0 VALUES(1,0),(2,0); |
+ UPDATE t0 SET b=9 WHERE a AND (SELECT a FROM t0 WHERE a); |
+ SELECT * FROM t0 ORDER BY +a; |
+} {1 9 2 9} |
+ |
finish_test |