pgsql: Fix error reporting of connect_timeout in libpq for value parsin

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix error reporting of connect_timeout in libpq for value parsin
Date: 2019-10-21 02:40:09
Message-ID: E1iMNc9-0000CL-Pu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix error reporting of connect_timeout in libpq for value parsing

The logic was correctly detecting a parsing failure, but the parsing
error did not get reported back to the client properly.

Reported-by: Ed Morley
Author: Lars Kanis
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/a9b4cbd7-4ecb-06b2-ebd7-1739bbff3217@greiz-reinsdorf.de
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ed5109a616cf98d3b3b2491d043099a6e0a966a2

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-10-21 03:35:32 Re: pgsql: Remove last traces of heap_open/close in the tree
Previous Message Michael Paquier 2019-10-21 02:18:21 pgsql: Fix parsing of integer values for connection parameters in libpq