Skip to content

Commit 498d2d1

Browse files
committed
From: Edmund Mergl <E.Mergl@bawue.de>
Subject: [PATCHES] libpq patch Hi, here is a small patch which fixes two problems: 1. libpq/libpq-fe.h: somehow disappeared the line #define DefaultOption "" now compilation stops with an error complainig an unknown DefaultOption (970508). 2. Same patch as I sent already twice, but it never made it into the source tree: there is no default value for AuthType and Password. This way any libpq-application (i.e. perl-scripts) which use the function PQconnectdb will break with PostgreSQL-6.1. The patch simply uses an empty string as default value.
1 parent 6ef382c commit 498d2d1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.32 1997/05/07 03:13:50 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.33 1997/05/09 03:28:49 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -73,13 +73,13 @@ static PQconninfoOption PQconninfoOptions[] = {
7373
/* Option-name Environment-Var Compiled-in Current value */
7474
/* Label Disp-Char */
7575
/* ----------------- --------------- --------------- --------------- */
76-
{ "authtype", "PGAUTHTYPE", NULL, NULL,
76+
{ "authtype", "PGAUTHTYPE", DefaultAuthtype, NULL,
7777
"Database-Authtype", "", 20 },
7878

7979
{ "user", "PGUSER", NULL, NULL,
8080
"Database-User", "", 20 },
8181

82-
{ "password", "PGPASSWORD", NULL, NULL,
82+
{ "password", "PGPASSWORD", DefaultPassword, NULL,
8383
"Database-Password", "", 20 },
8484

8585
{ "dbname", "PGDATABASE", NULL, NULL,

src/interfaces/libpq/libpq-fe.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: libpq-fe.h,v 1.18 1997/03/12 21:23:16 scrappy Exp $
9+
* $Id: libpq-fe.h,v 1.19 1997/05/09 03:28:54 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -301,6 +301,9 @@ int lo_export(PGconn *conn, Oid lobjId, char *filename);
301301
#define DefaultHost "localhost"
302302
#define DefaultTty ""
303303
#define DefaultOption ""
304+
#define DefaultAuthtype ""
305+
#define DefaultPassword ""
306+
304307

305308
typedef void *TUPLE;
306309
#define palloc malloc

0 commit comments

Comments
 (0)