7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
11 #line 1 "regression.h"
40 char * stmt1 =
"INSERT INTO test1 VALUES ($1, $2)" ;
43 char * stmt2 =
"SELECT * from test1 where a = $1 and b = $2" ;
46 char * stmt3 =
"SELECT * from test1 where :var = a" ;
52 char val2 [ 4 ] =
"one" , val2output [] =
"AAA" ;
55 int val1output = 2 , val2i = 0 ;
64 char desc1 [ 8 ] =
"outdesc" ;
102 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
247 printf(
"output = %s\n", val2output);
264 ECPGt_int,&(val1output),(
long)1,(
long)1,
sizeof(
int),
265 ECPGt_int,&(ind1),(
long)1,(
long)1,
sizeof(
int),
266 ECPGt_char,(val2output),(
long)
sizeof(
"AAA"),(
long)1,(
sizeof(
"AAA"))*
sizeof(
char),
273 printf(
"val1=%d (ind1: %d) val2=%s (ind2: %d)\n",
274 val1output, ind1, val2output, ind2);
314 ECPGt_int,&(val1output),(
long)1,(
long)1,
sizeof(
int),
316 ECPGt_char,(val2output),(
long)
sizeof(
"AAA"),(
long)1,(
sizeof(
"AAA"))*
sizeof(
char),
323 printf(
"val1=%d val2=%s\n", val1output, val2i ?
"null" : val2output);
333 ECPGt_int,&(val1output),(
long)1,(
long)1,
sizeof(
int),
335 ECPGt_char,(val2output),(
long)
sizeof(
"AAA"),(
long)1,(
sizeof(
"AAA"))*
sizeof(
char),
342 printf(
"val1=%d val2=%c%c%c%c warn=%c truncate=%d\n", val1output, val2output[0], val2output[1], val2output[2], val2output[3],
sqlca.sqlwarn[0], val2i);
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 ECPGdeallocate_desc(int line, const char *name)
bool ECPGget_desc(int lineno, const char *desc_name, int index,...)
bool ECPGallocate_desc(int line, const char *name)
bool ECPGset_desc_header(int lineno, const char *desc_name, int count)
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 ECPGdeallocate_all(int lineno, int compat, const char *connection_name)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)
char * ECPGprepared_statement(const char *connection_name, const char *name, int lineno)
bool ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)