|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.164 2004/09/26 22:51:49 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.165 2004/10/01 17:34:17 tgl Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="libpq">
|
@@ -3979,8 +3979,8 @@ main(int argc, char **argv)
|
3979 | 3979 | /* Check to see that the backend connection was successfully made */
|
3980 | 3980 | if (PQstatus(conn) != CONNECTION_OK)
|
3981 | 3981 | {
|
3982 |
| - fprintf(stderr, "Connection to database '%s' failed.\n", PQdb(conn)); |
3983 |
| - fprintf(stderr, "%s", PQerrorMessage(conn)); |
| 3982 | + fprintf(stderr, "Connection to database failed: %s", |
| 3983 | + PQerrorMessage(conn)); |
3984 | 3984 | exit_nicely(conn);
|
3985 | 3985 | }
|
3986 | 3986 |
|
@@ -4125,8 +4125,8 @@ main(int argc, char **argv)
|
4125 | 4125 | /* Check to see that the backend connection was successfully made */
|
4126 | 4126 | if (PQstatus(conn) != CONNECTION_OK)
|
4127 | 4127 | {
|
4128 |
| - fprintf(stderr, "Connection to database '%s' failed.\n", PQdb(conn)); |
4129 |
| - fprintf(stderr, "%s", PQerrorMessage(conn)); |
| 4128 | + fprintf(stderr, "Connection to database failed: %s", |
| 4129 | + PQerrorMessage(conn)); |
4130 | 4130 | exit_nicely(conn);
|
4131 | 4131 | }
|
4132 | 4132 |
|
@@ -4267,8 +4267,8 @@ main(int argc, char **argv)
|
4267 | 4267 | /* Check to see that the backend connection was successfully made */
|
4268 | 4268 | if (PQstatus(conn) != CONNECTION_OK)
|
4269 | 4269 | {
|
4270 |
| - fprintf(stderr, "Connection to database '%s' failed.\n", PQdb(conn)); |
4271 |
| - fprintf(stderr, "%s", PQerrorMessage(conn)); |
| 4270 | + fprintf(stderr, "Connection to database failed: %s", |
| 4271 | + PQerrorMessage(conn)); |
4272 | 4272 | exit_nicely(conn);
|
4273 | 4273 | }
|
4274 | 4274 |
|
|
0 commit comments