mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Here's my next patch to bring ecpg to version 1.1. It now correctly
handles all transaction commands and the exec sql include command. Michael Meskes
This commit is contained in:
@ -1,15 +1,23 @@
|
||||
#include <c.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void ECPGdebug(int, FILE *);
|
||||
bool ECPGconnect(const char *dbname);
|
||||
bool ECPGdo(int, char *,...);
|
||||
bool ECPGcommit(int);
|
||||
bool ECPGrollback(int);
|
||||
bool ECPGtrans(int, const char *);
|
||||
bool ECPGfinish(void);
|
||||
bool ECPGstatus(void);
|
||||
|
||||
void ECPGlog(const char *format,...);
|
||||
|
||||
/* These functions are only kept for compatibility reasons. */
|
||||
/* Use ECPGtrans instead. */
|
||||
bool ECPGcommit(int);
|
||||
bool ECPGrollback(int);
|
||||
|
||||
#ifdef LIBPQ_FE_H
|
||||
bool ECPGsetdb(PGconn *);
|
||||
|
||||
@ -32,3 +40,7 @@ void sqlprint(void);
|
||||
/* define this for simplicity as well as compatibility */
|
||||
|
||||
#define SQLCODE sqlca.sqlcode
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user