Skip to content

Commit 976a7d1

Browse files
author
Michael Meskes
committed
Always use the same way to addres a descriptor in ecpg's regression tests.
1 parent bb953ad commit 976a7d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/interfaces/ecpg/test/expected/sql-desc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ if (sqlca.sqlcode < 0) sqlprint();}
228228
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, "foo2",
229229
ECPGt_descriptor, "indesc", 1L, 1L, 1L,
230230
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT,
231-
ECPGt_descriptor, "outdesc", 1L, 1L, 1L,
231+
ECPGt_descriptor, (desc1), 1L, 1L, 1L,
232232
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
233233
#line 53 "desc.pgc"
234234

235235
if (sqlca.sqlcode < 0) sqlprint();}
236236
#line 53 "desc.pgc"
237237

238238

239-
{ ECPGget_desc(__LINE__, "outdesc", 1,ECPGd_data,
239+
{ ECPGget_desc(__LINE__, (desc1), 1,ECPGd_data,
240240
ECPGt_char,(val2output),(long)sizeof("AAA"),(long)1,(sizeof("AAA"))*sizeof(char), ECPGd_EODT);
241241

242242
#line 55 "desc.pgc"
@@ -366,7 +366,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
366366
if (sqlca.sqlcode < 0) sqlprint();
367367
#line 85 "desc.pgc"
368368

369-
ECPGdeallocate_desc(__LINE__, "outdesc");
369+
ECPGdeallocate_desc(__LINE__, (desc1));
370370
#line 86 "desc.pgc"
371371

372372
if (sqlca.sqlcode < 0) sqlprint();

src/interfaces/ecpg/test/sql/desc.pgc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ main(void)
5050
EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1;
5151
EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2i, DATA = :val2;
5252

53-
EXEC SQL EXECUTE foo2 USING SQL DESCRIPTOR indesc INTO SQL DESCRIPTOR outdesc;
53+
EXEC SQL EXECUTE foo2 USING SQL DESCRIPTOR indesc INTO SQL DESCRIPTOR :desc1;
5454

55-
EXEC SQL GET DESCRIPTOR outdesc VALUE 1 :val2output = DATA;
55+
EXEC SQL GET DESCRIPTOR :desc1 VALUE 1 :val2output = DATA;
5656
printf("output = %s\n", val2output);
5757

5858
EXEC SQL DECLARE c1 CURSOR FOR foo2;
@@ -83,7 +83,7 @@ main(void)
8383
EXEC SQL DISCONNECT;
8484

8585
EXEC SQL DEALLOCATE DESCRIPTOR indesc;
86-
EXEC SQL DEALLOCATE DESCRIPTOR outdesc;
86+
EXEC SQL DEALLOCATE DESCRIPTOR :desc1;
8787

8888
return 0;
8989
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy