Simplifications to error message processing. Fix a possible problem in error
message formatting when vacuuming a database with a corrupt schema. FossilOrigin-Name: 56ef98a04765c34c1c2f3ed7a6f03a732f3b886e
This commit is contained in:
@@ -208,4 +208,15 @@ 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"}}
|
||||
|
||||
finish_test
|
||||
|
||||
Reference in New Issue
Block a user