File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1169,18 +1169,18 @@ public struct Row {
1169
1169
}
1170
1170
1171
1171
guard let idx = columnNames [ column. template] else {
1172
- func similar( _ s : String ) -> Bool {
1173
- return s . hasSuffix ( " . \( column. template) " )
1172
+ func similar( _ name : String ) -> Bool {
1173
+ return name . hasSuffix ( " . \( column. template) " )
1174
1174
}
1175
-
1175
+
1176
1176
guard let firstIndex = columnNames. firstIndex ( where: { similar ( $0. key) } ) else {
1177
1177
throw QueryError . noSuchColumn ( name: column. template, columns: columnNames. keys. sorted ( ) )
1178
1178
}
1179
-
1179
+
1180
1180
let secondIndex = columnNames
1181
1181
. suffix ( from: columnNames. index ( after: firstIndex) )
1182
1182
. firstIndex ( where: { similar ( $0. key) } )
1183
-
1183
+
1184
1184
guard secondIndex == nil else {
1185
1185
throw QueryError . ambiguousColumn (
1186
1186
name: column. template,
You can’t perform that action at this time.
0 commit comments