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

Commited5109a

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 parent2b0f959 commited5109a

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
@@ -1992,7 +1992,11 @@ connectDBComplete(PGconn *conn)
19921992
{
19931993
if (!parse_int_param(conn->connect_timeout,&timeout,conn,
19941994
"connect_timeout"))
1995+
{
1996+
/* mark the connection as bad to report the parsing failure */
1997+
conn->status=CONNECTION_BAD;
19951998
return0;
1999+
}
19962000

19972001
if (timeout>0)
19982002
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp