mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
SE-0249: Key Path Expressions as Functions
This commit is contained in:
1 parent
a31984724e
commit
7865b0a2ee
40 files changed
+160
-160
No files matched your search
@@ -370,7 +370,7 @@ struct SQLQueryGenerator {
|
||||
|
||||
// Grouping by some column(s) which are unique
|
||||
// SELECT * FROM player GROUP BY id
|
||||
let columnNames = qualifiedColumns.map { $0.name }
|
||||
let columnNames = qualifiedColumns.map(\.name)
|
||||
if try db.table(tableName, hasUniqueKey: columnNames) {
|
||||
return .unique
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user