Skip to content

Commit 64f8471

Browse files
authored
bindings fix.swift (#90)
1 parent ec9a634 commit 64f8471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StructuredQueriesCore/QueryFragment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public struct QueryFragment: Hashable, Sendable {
6969
case .sql(let sql):
7070
$0.sql.append(sql)
7171
case .binding(let binding):
72-
$0.sql.append(template($1.offset + 1))
72+
$0.sql.append(template($0.bindings.count + 1))
7373
$0.bindings.append(binding)
7474
}
7575
}

0 commit comments

Comments
 (0)