Skip to content

Commit 875a3f6

Browse files
committed
From: Michael Meskes <meskes@online-club.de> + + Fri Aug 14 12:44:21 CEST 1998 + + - Added EXEC SQL DEFINE statement + - Set version to 2.4.0 + + Tue Aug 18 09:24:15 CEST 1998 + + - Removed keyword IS from DEFINE statement + - Added latest changes from gram.y + - Removed duplicate symbols from preproc.y + - Initialize sqlca structure + - Added check for connection to ecpglib + - Set version to 2.4.1 + + Thu Aug 20 15:31:29 CEST 1998 + + - Cleaned up memory allocation in ecpglib.c + - Set library version to 2.6 +
1 parent 35478b8 commit 875a3f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/interfaces/ecpg/test/test1.pgc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ exec sql whenever sqlerror sqlprint;
44

55
exec sql include sqlca;
66

7+
exec sql define AMOUNT 5;
8+
79
int
810
main ()
911
{
1012
exec sql begin declare section;
11-
int amount[5];
12-
char name[5][8];
13+
int amount[AMOUNT];
14+
char name[AMOUNT][8];
1315
exec sql end declare section;
1416
char msg[128], command[128];
1517
FILE *dbgs;

0 commit comments

Comments
 (0)