Skip to content

Commit dc5283b

Browse files
Fix inconsistent usage of prepared statement name in PostgresClient (#613)
Co-authored-by: Fabian Fett <fabianfett@apple.com>
1 parent b1a40fb commit dc5283b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/PostgresNIO/Pool/PostgresClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public final class PostgresClient: Sendable, ServiceLifecycle.Service {
422422

423423
let promise = connection.channel.eventLoop.makePromise(of: PSQLRowStream.self)
424424
let task = HandlerTask.executePreparedStatement(.init(
425-
name: String(reflecting: Statement.self),
425+
name: Statement.name,
426426
sql: Statement.sql,
427427
bindings: bindings,
428428
bindingDataTypes: Statement.bindingDataTypes,

0 commit comments

Comments
 (0)