Avoid replacing effective notice messages.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Wed, 14 Feb 2018 10:32:22 +0000 (19:32 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Wed, 14 Mar 2018 10:49:50 +0000 (19:49 +0900)
Report from Wolfgang Apolinarski. Patch by Clemens Ladisch.

connection.c

index ed51e02fd4ae8c9ee4a25725ad6273bb820529f4..dcf01e6f11992aa8d10933ef5b372889c1013cfd 100644 (file)
@@ -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;
    }