1/* Processed by ecpg (regression mode) */
2/* These include files are added by the preprocessor */
6/* End of automatic include section */
7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
11 * this file tests multiple connections to databases and switches
34/* exec sql begin declare section */
43/* exec sql end declare section */
50 {
ECPGconnect(__LINE__, 0,
"ecpg2_regression" , NULL, NULL ,
id, 0); }
53 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL ,
"second", 0); }
57 /* this selects from "second" which was opened last */
59 ECPGt_char,(res),(
long)200,(
long)1,(200)*
sizeof(
char),
64 ECPGt_char,(res),(
long)200,(
long)1,(200)*
sizeof(
char),
69 ECPGt_char,(res),(
long)200,(
long)1,(200)*
sizeof(
char),
78 ECPGt_char,(res),(
long)200,(
long)1,(200)*
sizeof(
char),
83 /* this will disconnect from "first" */
88 ECPGt_char,(res),(
long)200,(
long)1,(200)*
sizeof(
char),
93 /* error here since "first" is already disconnected */
98 /* disconnect from "second" */
bool ECPGsetconn(int lineno, const char *connection_name)
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,...)