30 int i1 [ 3 ] , i2 [ 3 ] , i3 [ 3 ] , i4 ;
36 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
57 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into insupd_test ( a , b ) values ( 1 , 1 )",
ECPGt_EOIT,
ECPGt_EORT);
66 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into insupd_test ( a , b ) values ( 2 , 2 )",
ECPGt_EOIT,
ECPGt_EORT);
75 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into insupd_test ( a , b ) values ( 3 , 3 ) returning a",
ECPGt_EOIT,
76 ECPGt_int,&(i4),(
long)1,(
long)1,
sizeof(
int),
88 ECPGt_int,(i3),(
long)1,(
long)3,
sizeof(
int),
98 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"update insupd_test set ( a , b ) = ( 5 , 5 ) where a = 4",
ECPGt_EOIT,
ECPGt_EORT);
102 #line 25 "insupd.pgc"
105 #line 25 "insupd.pgc"
108 #line 26 "insupd.pgc"
111 #line 26 "insupd.pgc"
114 #line 26 "insupd.pgc"
118 ECPGt_int,(i1),(
long)1,(
long)3,
sizeof(
int),
120 ECPGt_int,(i2),(
long)1,(
long)3,
sizeof(
int),
122 #line 28 "insupd.pgc"
125 #line 28 "insupd.pgc"
128 #line 28 "insupd.pgc"
131 printf(
"changes\n%d %d %d %d\n", i3[0], i3[1], i3[2], i4);
132 printf(
"test\na b\n%d %d\n%d %d\n%d %d\n", i1[0], i2[0], i1[1], i2[1], i1[2], i2[2]);
135 #line 33 "insupd.pgc"
138 #line 33 "insupd.pgc"
141 #line 33 "insupd.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,...)