Skip to content

Fix Compilation On Xcode 12 Beta 1 #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/SQLite/Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension String {
var (template, bindings) = ([String](), [Binding?]())
for expressible in expressions {
let expression = expressible.expression
template.append(expression.template)
template.append("\(expression.template)")
bindings.append(contentsOf: expression.bindings)
}
return Expression<Void>(template.joined(separator: self), bindings)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLite/Typed/Query.swift
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ extension Connection {
private func columnNamesForQuery(_ query: QueryType) throws -> [String: Int] {
var (columnNames, idx) = ([String: Int](), 0)
column: for each in query.clauses.select.columns {
var names = each.expression.template.split { $0 == "." }.map(String.init)
var names = each.expression.template.split(separator: ".")
let column = names.removeLast()
let namespace = names.joined(separator: ".")

Expand Down