mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
FetchedResultsController: throw errors for invalid sql arguments
This commit is contained in:
1 parent
97fcdf9ce6
commit
be2ef28fad
1 file changed
+2
-1
@@ -16,7 +16,8 @@ private enum Source<T> {
|
||||
case .SQL(let sql, let arguments):
|
||||
let statement = try db.selectStatement(sql)
|
||||
if let arguments = arguments {
|
||||
statement.arguments = arguments
|
||||
try statement.validateArguments(arguments)
|
||||
statement.unsafeSetArguments(arguments)
|
||||
}
|
||||
return statement
|
||||
case .FetchRequest(let fetchRequest):
|
||||
|
||||
Reference in new issue
Block a user