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

Commit498d2d1

Browse files
committed
From: Edmund Mergl <E.Mergl@bawue.de>
Subject: [PATCHES] libpq patchHi,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 anunknown 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 parent6ef382c commit498d2d1

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-nameEnvironment-VarCompiled-inCurrent value*/
7474
/*LabelDisp-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
#defineDefaultHost"localhost"
302302
#defineDefaultTty""
303303
#defineDefaultOption""
304+
#defineDefaultAuthtype ""
305+
#defineDefaultPassword ""
306+
304307

305308
typedefvoid*TUPLE;
306309
#definepalloc malloc

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp