mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts: GRDB.xcodeproj/project.pbxproj GRDB/QueryInterface/QueryInterfaceRequest.swift GRDB/QueryInterface/SQLCollation.swift GRDB/QueryInterface/SQLSelectQuery.swift
This commit is contained in:
commit
ba24c55d41
6 files changed
+86
-20
No files matched your search
@@ -24,10 +24,10 @@ extension QueryInterfaceRequest : FetchRequest {
|
||||
/// - throws: A DatabaseError whenever SQLite could not parse the sql query.
|
||||
public func prepare(_ db: Database) throws -> (SelectStatement, RowAdapter?) {
|
||||
// TODO: split statement generation from arguments building
|
||||
var arguments = StatementArguments()
|
||||
var arguments: StatementArguments? = StatementArguments()
|
||||
let sql = try query.sql(db, &arguments)
|
||||
let statement = try db.makeSelectStatement(sql)
|
||||
try statement.setArgumentsWithValidation(arguments)
|
||||
try statement.setArgumentsWithValidation(arguments!)
|
||||
return (statement, nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user