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:
Gwendal Roué committed 2016-07-22 13:04:20 +02:00
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)
}
}