fix missed query row

This commit is contained in:
adlerhurst
2025-07-17 01:03:04 +02:00
parent 8bda1e098a
commit 15a7810581

View File

@@ -43,7 +43,7 @@ func (c *pgxConn) Query(ctx context.Context, sql string, args ...any) (database.
// QueryRow implements sql.Client. // QueryRow implements sql.Client.
// Subtle: this method shadows the method (*Conn).QueryRow of pgxConn.Conn. // Subtle: this method shadows the method (*Conn).QueryRow of pgxConn.Conn.
func (c *pgxConn) QueryRow(ctx context.Context, sql string, args ...any) database.Row { func (c *pgxConn) QueryRow(ctx context.Context, sql string, args ...any) database.Row {
return c.Conn.QueryRow(ctx, sql, args...) return &Row{c.Conn.QueryRow(ctx, sql, args...)}
} }
// Exec implements [database.Pool]. // Exec implements [database.Pool].