7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
39 {
ECPGconnect(__LINE__, 0,
"ecpg2_regression" , NULL, NULL ,
"main", 0); }
49 {
ECPGconnect(__LINE__, 0,
"ecpg2_regression@localhost" , NULL, NULL ,
"main", 0); }
56 {
ECPGconnect(__LINE__, 0,
"@localhost" ,
"regress_ecpg_user2" , NULL ,
"main", 0); }
66 {
ECPGconnect(__LINE__, 0,
"tcp:postgresql://localhost/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" , NULL, 0); }
73 {
ECPGconnect(__LINE__, 0,
"tcp:postgresql://localhost/" ,
"regress_ecpg_user2" , NULL , NULL, 0); }
80 strcpy(pw,
"connectpw");
81 strcpy(db,
"tcp:postgresql://localhost/ecpg2_regression");
82 {
ECPGconnect(__LINE__, 0, db ,
"regress_ecpg_user1" , pw , NULL, 0); }
89 {
ECPGconnect(__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" , NULL, 0); }
96 {
ECPGconnect(__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression?connect_timeout=180" ,
"regress_ecpg_user1" , NULL , NULL, 0); }
104 {
ECPGconnect(__LINE__, 0,
"tcp:postgresql://localhost/nonexistent" ,
"regress_ecpg_user1" ,
"connectpw" , NULL, 0); }
112 {
ECPGconnect(__LINE__, 0,
"tcp:postgresql://127.0.0.1:20/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" , NULL, 0); }
118 {
ECPGconnect(__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression" ,
"regress_ecpg_user1" ,
"wrongpw" , NULL, 0); }
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)