Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba19a6b

Browse files
committed
Fix error reporting of connect_timeout in libpq for value parsing
The logic was correctly detecting a parsing failure, but the parsingerror did not get reported back to the client properly.Reported-by: Ed MorleyAuthor: Lars KanisReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/a9b4cbd7-4ecb-06b2-ebd7-1739bbff3217@greiz-reinsdorf.deBackpatch-through: 12
1 parent4f4061b commitba19a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,11 @@ connectDBComplete(PGconn *conn)
20252025
{
20262026
if (!parse_int_param(conn->connect_timeout,&timeout,conn,
20272027
"connect_timeout"))
2028+
{
2029+
/* mark the connection as bad to report the parsing failure */
2030+
conn->status=CONNECTION_BAD;
20282031
return0;
2032+
}
20292033

20302034
if (timeout>0)
20312035
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp