From db0605edffc8442fa6c719858ca909c5a96ee2d3 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Fri, 9 Aug 2024 22:33:40 -0300 Subject: [PATCH] also accept results --- c/driver/postgresql/bind_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/driver/postgresql/bind_stream.h b/c/driver/postgresql/bind_stream.h index 5414c5aa59..fc144e99fe 100644 --- a/c/driver/postgresql/bind_stream.h +++ b/c/driver/postgresql/bind_stream.h @@ -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));