1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Added fcvt() prot for bsdi.

Made PQsetdb() and PQfnumber() case-insensitive.
Removed attempt to set table ownership via pg_dumpall.
This commit is contained in:
Bruce Momjian
1997-05-20 03:39:02 +00:00
parent 9860926148
commit a1157deb57
4 changed files with 19 additions and 8 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.34 1997/05/13 01:46:00 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.35 1997/05/20 03:38:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -303,7 +303,8 @@ PQsetdb(const char *pghost, const char* pgport, const char* pgoptions, const cha
/* An error message from some service we call. */
bool error;
/* We encountered an error that prevents successful completion */
int i;
conn = (PGconn*)malloc(sizeof(PGconn));
if (conn == NULL)
@ -375,6 +376,9 @@ PQsetdb(const char *pghost, const char* pgport, const char* pgoptions, const cha
((tmp = getenv("PGDATABASE")))) {
conn->dbName = strdup(tmp);
} else conn->dbName = strdup(conn->pguser);
for(i = 0; conn->dbName[i]; i++)
if (isupper(conn->dbName[i]))
conn->dbName[i] = tolower(conn->dbName[i]);
} else conn->dbName = NULL;
if (error) conn->status = CONNECTION_BAD;