7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
47 char val2 [ 6 ] =
"data1" ;
50 char *
stmt1 =
"SELECT * from test1 where a = $1 and b = $2" ;
63 printf(
"Test 1: Try to get descriptor on a disconnected connection\n");
67 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into test1 ( a , b ) values ( 1 , 'data1' )",
ECPGt_EOIT,
ECPGt_EORT);}
115 printf(
"Test 2: deallocate all with non-existent connection\n");
122 printf(
"Test 3: deallocate all on disconnected connection\n");
129 printf(
"Test 4: Use prepared statement from non-existent connection\n");
143 printf(
"All tests completed !\n");
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 ECPGget_desc(int lineno, const char *desc_name, int index,...)
bool ECPGallocate_desc(int line, const char *name)
bool ECPGset_desc(int lineno, const char *desc_name, int index,...)
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,...)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
bool ECPGdeallocate_all(int lineno, int compat, const char *connection_name)
char * ECPGprepared_statement(const char *connection_name, const char *name, int lineno)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)