9#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
11#line 1 "test_informix.pgc"
23#line 4 "test_informix.pgc"
29 printf(
"doSQLprint: Error: %s\n",
sqlca.sqlerrm.sqlerrmc);
35#line 14 "test_informix.pgc"
36 int i = 14 , loopcount ;
38#line 14 "test_informix.pgc"
41#line 15 "test_informix.pgc"
44#line 15 "test_informix.pgc"
47#line 16 "test_informix.pgc"
50#line 16 "test_informix.pgc"
55#line 19 "test_informix.pgc"
58 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL , NULL, 0);
59#line 21 "test_informix.pgc"
62#line 21 "test_informix.pgc"
66 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"create table test ( i int primary key , j int , c text )",
ECPGt_EOIT,
ECPGt_EORT);
67#line 24 "test_informix.pgc"
70#line 24 "test_informix.pgc"
75 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( 7 , $1 , 'test ' )",
78#line 28 "test_informix.pgc"
81#line 28 "test_informix.pgc"
84#line 29 "test_informix.pgc"
87#line 29 "test_informix.pgc"
91 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( 7 , 12 , 'a' )",
ECPGt_EOIT,
ECPGt_EORT);
92#line 32 "test_informix.pgc"
95#line 32 "test_informix.pgc"
99#line 34 "test_informix.pgc"
102#line 34 "test_informix.pgc"
105 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( $1 , 1 , 'a ' )",
108#line 36 "test_informix.pgc"
111#line 36 "test_informix.pgc"
114#line 37 "test_informix.pgc"
117#line 37 "test_informix.pgc"
122#line 40 "test_informix.pgc"
125#line 40 "test_informix.pgc"
128#line 41 "test_informix.pgc"
131#line 41 "test_informix.pgc"
136#line 44 "test_informix.pgc"
139#line 44 "test_informix.pgc"
143#line 46 "test_informix.pgc"
146#line 46 "test_informix.pgc"
152#line 49 "test_informix.pgc"
155#line 49 "test_informix.pgc"
157#line 49 "test_informix.pgc"
164 for (loopcount = 0; loopcount < 100; loopcount++)
173#line 57 "test_informix.pgc"
176#line 57 "test_informix.pgc"
178 if (
sqlca.sqlcode == 100)
break;
194 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"delete from test where i = $1 :: decimal",
197#line 74 "test_informix.pgc"
200#line 74 "test_informix.pgc"
205#line 77 "test_informix.pgc"
208#line 77 "test_informix.pgc"
213#line 80 "test_informix.pgc"
216#line 80 "test_informix.pgc"
221#line 83 "test_informix.pgc"
224#line 83 "test_informix.pgc"
227#line 84 "test_informix.pgc"
230#line 84 "test_informix.pgc"
233#line 85 "test_informix.pgc"
236#line 85 "test_informix.pgc"
240#line 87 "test_informix.pgc"
243#line 87 "test_informix.pgc"
251 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"declare c cursor for select * from test where i <= $1 ",
254#line 94 "test_informix.pgc"
257#line 94 "test_informix.pgc"
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,...)
void ECPGset_var(int number, void *pointer, int lineno)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
void * ECPGget_var(int number)