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))
14/* test parser addition that merges two tokens into one */
27 /* exec sql begin declare section */
31 int item [ 3 ] ,
ind [ 3 ] ,
i ;
32/* exec sql end declare section */
37 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
44 /* exec sql whenever sql_warning sqlprint ; */
47 /* exec sql whenever sqlerror sqlprint ; */
61 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into t select 1 , nullif ( y - 1 , 0 ) from generate_series ( 1 , 3 ) with ordinality as series ( x , y )",
ECPGt_EOIT,
ECPGt_EORT);
72 ECPGt_int,(item),(
long)1,(
long)3,
sizeof(
int),
bool ECPGsetcommit(int lineno, const char *mode, 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,...)