mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
- Enable FETCH without INTO.
- Compatibility functions for INFORMIX handling of DECLARE statement.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.5 2003/05/20 11:05:27 meskes Exp $ */
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.6 2003/06/13 10:50:57 meskes Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
@ -257,21 +257,6 @@ ECPGnoticeProcessor(void *arg, const char *message)
|
||||
sqlca.sqlwarn[0] = 'W';
|
||||
}
|
||||
|
||||
/* this contains some quick hacks, needs to be cleaned up, but it works */
|
||||
bool
|
||||
ECPGconnect_informix(int lineno, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
|
||||
{
|
||||
char *informix_name = (char *)name, *envname;
|
||||
|
||||
/* Informix uses an environment variable DBPATH that overrides
|
||||
* the connection parameters given here.
|
||||
* We do the same with PG_DBPATH as the syntax is different. */
|
||||
envname = getenv("PG_DBPATH");
|
||||
if (envname)
|
||||
informix_name = envname;
|
||||
return (ECPGconnect(lineno, informix_name, user, passwd, connection_name, autocommit));
|
||||
}
|
||||
|
||||
/* this contains some quick hacks, needs to be cleaned up, but it works */
|
||||
bool
|
||||
ECPGconnect(int lineno, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
|
||||
@ -341,7 +326,7 @@ ECPGconnect(int lineno, const char *name, const char *user, const char *passwd,
|
||||
*tmp = '\0';
|
||||
}
|
||||
|
||||
tmp = last_path_separator(dbname + offset);
|
||||
tmp = last_path_separator(dbname + offset);
|
||||
if (tmp != NULL) /* database name given */
|
||||
{
|
||||
realname = strdup(tmp + 1);
|
||||
|
Reference in New Issue
Block a user