1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.

Removed one include file from connect-test1.
This commit is contained in:
Michael Meskes
2008-03-20 16:29:45 +00:00
parent 15364ea09d
commit f9e083fd30
5 changed files with 31 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.48 2007/11/15 21:14:45 momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.49 2008/03/20 16:29:44 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@ -565,3 +565,13 @@ ECPGdisconnect(int lineno, const char *connection_name)
return true;
}
PGconn* ECPGget_PGconn(const char *connection_name)
{
struct connection * con;
con=ecpg_get_connection(connection_name);
if (con==NULL) return NULL;
return con->connection;
}