Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteff6773

Browse files
author
Michael Meskes
committed
The source code changed, so the expected file changed too.
1 parent93625aa commiteff6773

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

‎src/interfaces/ecpg/test/expected/preproc-variable.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#line 4 "variable.pgc"
2323

2424

25-
/* exec sql whenever sqlerrorsqlprint ; */
25+
/* exec sql whenever sqlerrorstop ; */
2626
#line 6 "variable.pgc"
2727

2828

@@ -123,71 +123,71 @@ main (void)
123123
{ECPGconnect(__LINE__,0,"regress1" ,NULL,NULL ,NULL,0);
124124
#line 43 "variable.pgc"
125125

126-
if (sqlca.sqlcode<0)sqlprint();}
126+
if (sqlca.sqlcode<0)exit (1);}
127127
#line 43 "variable.pgc"
128128

129129

130130
strcpy(msg,"set");
131-
{ECPGdo(__LINE__,0,1,NULL,"set datestyle to iso",ECPGt_EOIT,ECPGt_EORT);
131+
{ECPGdo(__LINE__,0,1,NULL,0,0,"set datestyle to iso",ECPGt_EOIT,ECPGt_EORT);
132132
#line 46 "variable.pgc"
133133

134-
if (sqlca.sqlcode<0)sqlprint();}
134+
if (sqlca.sqlcode<0)exit (1);}
135135
#line 46 "variable.pgc"
136136

137137

138138
strcpy(msg,"create");
139-
{ECPGdo(__LINE__,0,1,NULL,"create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer ) ",ECPGt_EOIT,ECPGt_EORT);
139+
{ECPGdo(__LINE__,0,1,NULL,0,0,"create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer ) ",ECPGt_EOIT,ECPGt_EORT);
140140
#line 49 "variable.pgc"
141141

142-
if (sqlca.sqlcode<0)sqlprint();}
142+
if (sqlca.sqlcode<0)exit (1);}
143143
#line 49 "variable.pgc"
144144

145145

146146
strcpy(msg,"insert");
147-
{ECPGdo(__LINE__,0,1,NULL,"insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 ) ",ECPGt_EOIT,ECPGt_EORT);
147+
{ECPGdo(__LINE__,0,1,NULL,0,0,"insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 ) ",ECPGt_EOIT,ECPGt_EORT);
148148
#line 52 "variable.pgc"
149149

150-
if (sqlca.sqlcode<0)sqlprint();}
150+
if (sqlca.sqlcode<0)exit (1);}
151151
#line 52 "variable.pgc"
152152

153-
{ECPGdo(__LINE__,0,1,NULL,"insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 ) ",ECPGt_EOIT,ECPGt_EORT);
153+
{ECPGdo(__LINE__,0,1,NULL,0,0,"insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 ) ",ECPGt_EOIT,ECPGt_EORT);
154154
#line 53 "variable.pgc"
155155

156-
if (sqlca.sqlcode<0)sqlprint();}
156+
if (sqlca.sqlcode<0)exit (1);}
157157
#line 53 "variable.pgc"
158158

159-
{ECPGdo(__LINE__,0,1,NULL,"insert into family ( name , age ) values ( 'Child 1' , 16 ) ",ECPGt_EOIT,ECPGt_EORT);
159+
{ECPGdo(__LINE__,0,1,NULL,0,0,"insert into family ( name , age ) values ( 'Child 1' , 16 ) ",ECPGt_EOIT,ECPGt_EORT);
160160
#line 54 "variable.pgc"
161161

162-
if (sqlca.sqlcode<0)sqlprint();}
162+
if (sqlca.sqlcode<0)exit (1);}
163163
#line 54 "variable.pgc"
164164

165-
{ECPGdo(__LINE__,0,1,NULL,"insert into family ( name , age ) values ( 'Child 2' , 14 ) ",ECPGt_EOIT,ECPGt_EORT);
165+
{ECPGdo(__LINE__,0,1,NULL,0,0,"insert into family ( name , age ) values ( 'Child 2' , 14 ) ",ECPGt_EOIT,ECPGt_EORT);
166166
#line 55 "variable.pgc"
167167

168-
if (sqlca.sqlcode<0)sqlprint();}
168+
if (sqlca.sqlcode<0)exit (1);}
169169
#line 55 "variable.pgc"
170170

171-
{ECPGdo(__LINE__,0,1,NULL,"insert into family ( name , age ) values ( 'Child 3' , 9 ) ",ECPGt_EOIT,ECPGt_EORT);
171+
{ECPGdo(__LINE__,0,1,NULL,0,0,"insert into family ( name , age ) values ( 'Child 3' , 9 ) ",ECPGt_EOIT,ECPGt_EORT);
172172
#line 56 "variable.pgc"
173173

174-
if (sqlca.sqlcode<0)sqlprint();}
174+
if (sqlca.sqlcode<0)exit (1);}
175175
#line 56 "variable.pgc"
176176

177177

178178
strcpy(msg,"commit");
179179
{ECPGtrans(__LINE__,NULL,"commit");
180180
#line 59 "variable.pgc"
181181

182-
if (sqlca.sqlcode<0)sqlprint();}
182+
if (sqlca.sqlcode<0)exit (1);}
183183
#line 59 "variable.pgc"
184184

185185

186186
strcpy(msg,"open");
187-
{ECPGdo(__LINE__,0,1,NULL,"declare cur cursor for select name , born , age , married , children from family ",ECPGt_EOIT,ECPGt_EORT);
187+
{ECPGdo(__LINE__,0,1,NULL,0,0,"declare cur cursor for select name , born , age , married , children from family ",ECPGt_EOIT,ECPGt_EORT);
188188
#line 62 "variable.pgc"
189189

190-
if (sqlca.sqlcode<0)sqlprint();}
190+
if (sqlca.sqlcode<0)exit (1);}
191191
#line 62 "variable.pgc"
192192

193193

@@ -200,7 +200,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
200200
memset(i,0,sizeof(ind_personal));
201201
while (1) {
202202
strcpy(msg,"fetch");
203-
{ECPGdo(__LINE__,0,1,NULL,"fetch cur",ECPGt_EOIT,
203+
{ECPGdo(__LINE__,0,1,NULL,0,0,"fetch cur",ECPGt_EOIT,
204204
ECPGt_varchar,&(p->name),(long)BUFFERSIZ,(long)1,sizeof(structvarchar_name),
205205
ECPGt_int,&(i->ind_name),(long)1,(long)1,sizeof(int),
206206
ECPGt_long,&(p->birth.born),(long)1,(long)1,sizeof(long),
@@ -216,7 +216,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
216216
if (sqlca.sqlcode==ECPG_NOT_FOUND)break;
217217
#line 71 "variable.pgc"
218218

219-
if (sqlca.sqlcode<0)sqlprint();}
219+
if (sqlca.sqlcode<0)exit (1);}
220220
#line 71 "variable.pgc"
221221

222222
printf("%8.8s",personal.name.arr);
@@ -235,34 +235,34 @@ if (sqlca.sqlcode < 0) sqlprint();}
235235
}
236236

237237
strcpy(msg,"close");
238-
{ECPGdo(__LINE__,0,1,NULL,"close cur",ECPGt_EOIT,ECPGt_EORT);
238+
{ECPGdo(__LINE__,0,1,NULL,0,0,"close cur",ECPGt_EOIT,ECPGt_EORT);
239239
#line 88 "variable.pgc"
240240

241-
if (sqlca.sqlcode<0)sqlprint();}
241+
if (sqlca.sqlcode<0)exit (1);}
242242
#line 88 "variable.pgc"
243243

244244

245245
strcpy(msg,"drop");
246-
{ECPGdo(__LINE__,0,1,NULL,"drop table family ",ECPGt_EOIT,ECPGt_EORT);
246+
{ECPGdo(__LINE__,0,1,NULL,0,0,"drop table family ",ECPGt_EOIT,ECPGt_EORT);
247247
#line 91 "variable.pgc"
248248

249-
if (sqlca.sqlcode<0)sqlprint();}
249+
if (sqlca.sqlcode<0)exit (1);}
250250
#line 91 "variable.pgc"
251251

252252

253253
strcpy(msg,"commit");
254254
{ECPGtrans(__LINE__,NULL,"commit");
255255
#line 94 "variable.pgc"
256256

257-
if (sqlca.sqlcode<0)sqlprint();}
257+
if (sqlca.sqlcode<0)exit (1);}
258258
#line 94 "variable.pgc"
259259

260260

261261
strcpy(msg,"disconnect");
262262
{ECPGdisconnect(__LINE__,"CURRENT");
263263
#line 97 "variable.pgc"
264264

265-
if (sqlca.sqlcode<0)sqlprint();}
265+
if (sqlca.sqlcode<0)exit (1);}
266266
#line 97 "variable.pgc"
267267

268268

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp