Skip to content

Commit 5c88261

Browse files
committed
match columns that have been renamed
1 parent b74a67e commit 5c88261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SQLite/Typed/Query.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ public struct Row {
11691169
}
11701170

11711171
guard let idx = columnNames[column.template] else {
1172-
let similar = Array(columnNames.keys).filter { $0.hasSuffix(".\(column.template)") }
1172+
let similar = Array(columnNames.keys).filter { $0.hasSuffix(".\(column.template)") || $0.hasSuffix(" AS \(column.template)") }
11731173

11741174
switch similar.count {
11751175
case 0:

0 commit comments

Comments
 (0)