mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Merge branch 'master' into GRDB5
# Conflicts: # GRDB/Migration/DatabaseMigrator.swift # GRDB/QueryInterface/Request/QueryInterfaceRequest.swift # README.md
This commit is contained in:
commit
dab8e28f6d
11 files changed
+181
-99
No files matched your search
@@ -228,11 +228,7 @@ struct SQLQueryGenerator {
|
||||
sql += try relation.source.sql(db, &context)
|
||||
|
||||
let assignmentsSQL = assignments
|
||||
.map({ assignment in
|
||||
assignment.column.expressionSQL(&context, wrappedInParenthesis: false) +
|
||||
" = " +
|
||||
assignment.value.sqlExpression.expressionSQL(&context, wrappedInParenthesis: false)
|
||||
})
|
||||
.map { $0.sql(&context) }
|
||||
.joined(separator: ", ")
|
||||
sql += " SET " + assignmentsSQL
|
||||
|
||||
@@ -297,11 +293,7 @@ struct SQLQueryGenerator {
|
||||
sql += tableName.quotedDatabaseIdentifier
|
||||
|
||||
let assignmentsSQL = assignments
|
||||
.map({ assignment in
|
||||
assignment.column.expressionSQL(&context, wrappedInParenthesis: false) +
|
||||
" = " +
|
||||
assignment.value.sqlExpression.expressionSQL(&context, wrappedInParenthesis: false)
|
||||
})
|
||||
.map { $0.sql(&context) }
|
||||
.joined(separator: ", ")
|
||||
sql += " SET " + assignmentsSQL
|
||||
sql += " WHERE rowid IN (\(selectSQL))"
|
||||
|
||||
Reference in new issue
Block a user