9 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
17 #line 1 "regression.h"
32 #ifdef _ECPG_INFORMIX_H
52 #ifndef ECPG_SQLTYPES_H
53 #define ECPG_SQLTYPES_H
57 #define CCHARTYPE ECPGt_char
58 #define CSHORTTYPE ECPGt_short
59 #define CINTTYPE ECPGt_int
60 #define CLONGTYPE ECPGt_long
61 #define CFLOATTYPE ECPGt_float
62 #define CDOUBLETYPE ECPGt_double
63 #define CDECIMALTYPE ECPGt_decimal
64 #define CFIXCHARTYPE 108
65 #define CSTRINGTYPE ECPGt_char
66 #define CDATETYPE ECPGt_date
67 #define CMONEYTYPE 111
68 #define CDTIMETYPE ECPGt_timestamp
69 #define CLOCATORTYPE 113
70 #define CVCHARTYPE ECPGt_varchar
73 #define CINT8TYPE ECPGt_long_long
75 #define CLVCHARTYPE 119
76 #define CFIXBINTYPE 120
77 #define CVARBINTYPE 121
78 #define CBOOLTYPE ECPGt_bool
80 #define CLVCHARPTRTYPE 124
86 #define SQLCHAR ECPGt_char
87 #define SQLSMINT ECPGt_short
88 #define SQLINT ECPGt_int
89 #define SQLFLOAT ECPGt_double
90 #define SQLSMFLOAT ECPGt_float
91 #define SQLDECIMAL ECPGt_decimal
92 #define SQLSERIAL ECPGt_int
93 #define SQLDATE ECPGt_date
94 #define SQLDTIME ECPGt_timestamp
95 #define SQLTEXT ECPGt_char
96 #define SQLVCHAR ECPGt_char
97 #define SQLINTERVAL ECPGt_interval
98 #define SQLNCHAR ECPGt_char
99 #define SQLNVCHAR ECPGt_char
100 #ifdef HAVE_LONG_LONG_INT_64
101 #define SQLINT8 ECPGt_long_long
102 #define SQLSERIAL8 ECPGt_long_long
104 #define SQLINT8 ECPGt_long
105 #define SQLSERIAL8 ECPGt_long
127 printf(
"dump_sqlda called with NULL sqlda\n");
131 for (
i = 0;
i < sqlda->
sqld;
i++)
168 char * stmt1 =
"SELECT * FROM t1" ;
171 char * stmt2 =
"SELECT * FROM t1 WHERE id = ?" ;
186 strcpy(msg,
"connect");
187 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL ,
"regress1", 0);
202 strcpy(msg,
"create");
203 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) )",
ECPGt_EOIT,
ECPGt_EORT);
210 strcpy(msg,
"insert");
211 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' )",
ECPGt_EOIT,
ECPGt_EORT);
218 strcpy(msg,
"commit");
230 strcpy(msg,
"prepare");
238 strcpy(msg,
"declare");
247 #line 101 "sqlda.pgc"
250 #line 101 "sqlda.pgc"
254 #line 103 "sqlda.pgc"
260 strcpy(msg,
"fetch");
264 #line 109 "sqlda.pgc"
267 #line 109 "sqlda.pgc"
270 #line 109 "sqlda.pgc"
273 printf(
"FETCH RECORD %d\n", ++rec);
278 #line 115 "sqlda.pgc"
281 strcpy(msg,
"close");
283 #line 118 "sqlda.pgc"
286 #line 118 "sqlda.pgc"
289 strcpy(msg,
"deallocate");
291 #line 121 "sqlda.pgc"
294 #line 121 "sqlda.pgc"
305 strcpy(msg,
"prepare");
307 #line 132 "sqlda.pgc"
310 #line 132 "sqlda.pgc"
313 strcpy(msg,
"declare");
315 #line 135 "sqlda.pgc"
322 #line 138 "sqlda.pgc"
325 #line 138 "sqlda.pgc"
329 #line 140 "sqlda.pgc"
335 strcpy(msg,
"fetch");
339 #line 146 "sqlda.pgc"
342 #line 146 "sqlda.pgc"
345 #line 146 "sqlda.pgc"
348 printf(
"FETCH RECORD %d\n", ++rec);
353 #line 152 "sqlda.pgc"
356 strcpy(msg,
"close");
358 #line 155 "sqlda.pgc"
361 #line 155 "sqlda.pgc"
364 strcpy(msg,
"deallocate");
366 #line 158 "sqlda.pgc"
369 #line 158 "sqlda.pgc"
386 printf(
"EXECUTE RECORD 4\n");
392 strcpy(msg,
"prepare");
394 #line 181 "sqlda.pgc"
397 #line 181 "sqlda.pgc"
400 strcpy(msg,
"execute");
406 #line 184 "sqlda.pgc"
409 #line 184 "sqlda.pgc"
414 strcpy(msg,
"deallocate");
416 #line 189 "sqlda.pgc"
419 #line 189 "sqlda.pgc"
430 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL ,
"con2", 0);
431 #line 199 "sqlda.pgc"
434 #line 199 "sqlda.pgc"
447 printf(
"EXECUTE RECORD 4\n");
453 strcpy(msg,
"prepare");
454 {
ECPGprepare(__LINE__,
"con2", 0,
"st_id4", stmt2);
455 #line 218 "sqlda.pgc"
458 #line 218 "sqlda.pgc"
461 strcpy(msg,
"execute");
467 #line 221 "sqlda.pgc"
470 #line 221 "sqlda.pgc"
475 strcpy(msg,
"commit");
477 #line 226 "sqlda.pgc"
480 #line 226 "sqlda.pgc"
483 strcpy(msg,
"deallocate");
485 #line 229 "sqlda.pgc"
488 #line 229 "sqlda.pgc"
495 strcpy(msg,
"disconnect");
497 #line 236 "sqlda.pgc"
500 #line 236 "sqlda.pgc"
507 #line 241 "sqlda.pgc"
510 #line 241 "sqlda.pgc"
513 strcpy(msg,
"commit");
515 #line 244 "sqlda.pgc"
518 #line 244 "sqlda.pgc"
521 strcpy(msg,
"disconnect");
523 #line 247 "sqlda.pgc"
526 #line 247 "sqlda.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,...)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
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)
struct sqlvar_struct sqlvar[1]