Better error message when ENABLE_UPDATE_DELETE_LIMIT is missing

This commit is contained in:
Gwendal Roué committed 2019-11-08 09:04:34 +01:00
1 parent eae70f426e
commit dd4a2c5d9c
1 file changed
+2 -2
@@ -165,7 +165,7 @@ struct SQLQueryGenerator {
if Database.sqliteCompileOptions.contains("ENABLE_UPDATE_DELETE_LIMIT") {
sql += " LIMIT " + limit.sql
} else {
fatalError("Can't delete query with limit")
fatalError("SQLite was not compiled with the ENABLE_UPDATE_DELETE_LIMIT option: can't delete query with limit")
}
}
@@ -227,7 +227,7 @@ struct SQLQueryGenerator {
if Database.sqliteCompileOptions.contains("ENABLE_UPDATE_DELETE_LIMIT") {
sql += " LIMIT " + limit.sql
} else {
fatalError("Can't delete query with limit")
fatalError("SQLite was not compiled with the ENABLE_UPDATE_DELETE_LIMIT option: can't update query with limit")
}
}