projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19781a
)
Error when a specified connection service is not found, instead of ignoring it
author
Peter Eisentraut
<peter_e@gmx.net>
Sun, 29 Nov 2009 20:14:53 +0000
(20:14 +0000)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sun, 29 Nov 2009 20:14:53 +0000
(20:14 +0000)
src/interfaces/libpq/fe-connect.c
patch
|
blob
|
history
diff --git
a/src/interfaces/libpq/fe-connect.c
b/src/interfaces/libpq/fe-connect.c
index d8b8c697501a345e30e78573779a4a0882365fe4..aa1c0ced8bfcd7a187f41e98d8c79ce461c633d6 100644
(file)
--- a/
src/interfaces/libpq/fe-connect.c
+++ b/
src/interfaces/libpq/fe-connect.c
@@
-8,7
+8,7
@@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.3
79 2009/11/29 18:53:44
petere Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.3
80 2009/11/29 20:14:53
petere Exp $
*
*-------------------------------------------------------------------------
*/
@@
-3223,6
+3223,13
@@
parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage)
}
fclose(f);
+
+ if (!group_found)
+ {
+ printfPQExpBuffer(errorMessage,
+ libpq_gettext("definition of service \"%s\" not found\n"), service);
+ return 3;
+ }
}
return 0;