From: Marc G. Fournier Date: Tue, 25 Aug 1998 14:03:29 +0000 (+0000) Subject: From: Michael Meskes X-Git-Tag: REL6_4_2~590 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=875a3f66048a99a9ab91000d6bb2de80a62ad20a;p=postgresql From: Michael Meskes + + 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 + --- diff --git a/src/interfaces/ecpg/test/test1.pgc b/src/interfaces/ecpg/test/test1.pgc index c485a487fc..fde066a668 100644 --- a/src/interfaces/ecpg/test/test1.pgc +++ b/src/interfaces/ecpg/test/test1.pgc @@ -4,12 +4,14 @@ exec sql whenever sqlerror sqlprint; exec sql include sqlca; +exec sql define AMOUNT 5; + int main () { exec sql begin declare section; - int amount[5]; - char name[5][8]; + int amount[AMOUNT]; + char name[AMOUNT][8]; exec sql end declare section; char msg[128], command[128]; FILE *dbgs;