You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/interfaces/ecpg/test/expected/preproc-variable.c
+36-28Lines changed: 36 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -126,64 +126,72 @@ if (sqlca.sqlcode < 0) sqlprint();}
126
126
#line 43 "variable.pgc"
127
127
128
128
129
-
strcpy(msg, "create");
130
-
{ ECPGdo(__LINE__, 0, 1, NULL, "create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer ) ", ECPGt_EOIT, ECPGt_EORT);
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 ) ", ECPGt_EOIT, ECPGt_EORT);
137
+
strcpy(msg, "create");
138
+
{ ECPGdo(__LINE__, 0, 1, NULL, "create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer ) ", ECPGt_EOIT, ECPGt_EORT);
139
139
#line 49 "variable.pgc"
140
140
141
141
if (sqlca.sqlcode<0) sqlprint();}
142
142
#line 49 "variable.pgc"
143
143
144
+
145
+
strcpy(msg, "insert");
146
+
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 ) ", ECPGt_EOIT, ECPGt_EORT);
147
+
#line 52 "variable.pgc"
148
+
149
+
if (sqlca.sqlcode<0) sqlprint();}
150
+
#line 52 "variable.pgc"
151
+
144
152
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 ) ", ECPGt_EOIT, ECPGt_EORT);
145
-
#line50 "variable.pgc"
153
+
#line53 "variable.pgc"
146
154
147
155
if (sqlca.sqlcode<0) sqlprint();}
148
-
#line50 "variable.pgc"
156
+
#line53 "variable.pgc"
149
157
150
158
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , age ) values ( 'Child 1' , 16 ) ", ECPGt_EOIT, ECPGt_EORT);
151
-
#line51 "variable.pgc"
159
+
#line54 "variable.pgc"
152
160
153
161
if (sqlca.sqlcode<0) sqlprint();}
154
-
#line51 "variable.pgc"
162
+
#line54 "variable.pgc"
155
163
156
164
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , age ) values ( 'Child 2' , 14 ) ", ECPGt_EOIT, ECPGt_EORT);
157
-
#line52 "variable.pgc"
165
+
#line55 "variable.pgc"
158
166
159
167
if (sqlca.sqlcode<0) sqlprint();}
160
-
#line52 "variable.pgc"
168
+
#line55 "variable.pgc"
161
169
162
170
{ ECPGdo(__LINE__, 0, 1, NULL, "insert into family ( name , age ) values ( 'Child 3' , 9 ) ", ECPGt_EOIT, ECPGt_EORT);
163
-
#line53 "variable.pgc"
171
+
#line56 "variable.pgc"
164
172
165
173
if (sqlca.sqlcode<0) sqlprint();}
166
-
#line53 "variable.pgc"
174
+
#line56 "variable.pgc"
167
175
168
176
169
177
strcpy(msg, "commit");
170
178
{ ECPGtrans(__LINE__, NULL, "commit");
171
-
#line56 "variable.pgc"
179
+
#line59 "variable.pgc"
172
180
173
181
if (sqlca.sqlcode<0) sqlprint();}
174
-
#line56 "variable.pgc"
182
+
#line59 "variable.pgc"
175
183
176
184
177
185
strcpy(msg, "open");
178
186
{ ECPGdo(__LINE__, 0, 1, NULL, "declare cur cursor for select name , born , age , married , children from family ", ECPGt_EOIT, ECPGt_EORT);
179
-
#line59 "variable.pgc"
187
+
#line62 "variable.pgc"
180
188
181
189
if (sqlca.sqlcode<0) sqlprint();}
182
-
#line59 "variable.pgc"
190
+
#line62 "variable.pgc"
183
191
184
192
185
193
/* exec sql whenever not found break ; */
186
-
#line61 "variable.pgc"
194
+
#line64 "variable.pgc"
187
195
188
196
189
197
p=&personal;
@@ -202,13 +210,13 @@ if (sqlca.sqlcode < 0) sqlprint();}
0 commit comments