From cc38c462b680b4a5b89ce22c5ad3d3e451c82529 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Wed, 14 Feb 2018 19:32:22 +0900 Subject: [PATCH] Avoid replacing effective notice messages. Report from Wolfgang Apolinarski. Patch by Clemens Ladisch. --- connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.c b/connection.c index ed51e02..dcf01e6 100644 --- a/connection.c +++ b/connection.c @@ -894,7 +894,7 @@ handle_pgres_error(ConnectionClass *self, const PGresult *pgres, { if (QR_command_successful(res)) QR_set_rstatus(res, PORES_NONFATAL_ERROR); /* notice or warning */ - QR_set_notice(res, errmsg); /* will dup this string */ + QR_add_notice(res, errmsg); /* will dup this string */ } goto cleanup; } -- 2.39.5