Skip to content

Commit

Permalink
also accept results
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Aug 13, 2024
1 parent dfe0585 commit db0605e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/driver/postgresql/bind_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ struct BindStream {
/*resultFormat=*/0 /*text*/);

ExecStatusType pg_status = PQresultStatus(result);
if (pg_status != PGRES_COMMAND_OK) {
if (pg_status != PGRES_COMMAND_OK && pg_status != PGRES_TUPLES_OK) {
AdbcStatusCode code =
SetError(error, result, "[libpq] Failed to execute prepared statement: %s %s",
PQresStatus(pg_status), PQerrorMessage(pg_conn));
Expand Down

0 comments on commit db0605e

Please sign in to comment.