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

Commit90a8b1f

Browse files
committed
libpq: issue clear error message for nested service files
Previously an odd error message was generated. Nested service files arenot supported.Report by David Johnston
1 parent026fafd commit90a8b1f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4061,6 +4061,16 @@ parseServiceFile(const char *serviceFile,
40614061
}
40624062
*val++='\0';
40634063

4064+
if (strcmp(key,"service")==0)
4065+
{
4066+
printfPQExpBuffer(errorMessage,
4067+
libpq_gettext("nested service specifications not supported in service file \"%s\", line %d\n"),
4068+
serviceFile,
4069+
linenr);
4070+
fclose(f);
4071+
return3;
4072+
}
4073+
40644074
/*
40654075
* Set the parameter --- but don't override any previous
40664076
* explicit setting.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp