1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Update a few test cases to account for the new error message formats.

FossilOrigin-Name: 65a5bce3ffb656a43a2e5d2308a4bc67497105de
This commit is contained in:
dan
2013-11-28 19:28:00 +00:00
parent 0d4a0cdf18
commit 1b4b334abb
5 changed files with 16 additions and 13 deletions

View File

@ -69,7 +69,10 @@ proc catch_fk_error {zSql} {
if {[string match {*foreign key*} $msg]} {
return ""
}
if {$msg eq "out of memory" || $msg eq "constraint failed"} {
if {$msg eq "out of memory"
|| $msg eq "FOREIGN KEY constraint failed"
|| $msg eq "constraint failed"
} {
error 1
}
error $msg