From: | "Marines" <marines2000(at)hotmail(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | How to use constant or define inside the declare section in PostgreSQL's ecpg? |
Date: | 2001-11-27 05:20:36 |
Message-ID: | 3c0306eb$1_2@binarykiller.newsgroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
I want to use a constant inside my declare section but ecpg won't allow it.
Is there a workaround? thanks....
foo.pgc
--------------------
#define SIZE 10
EXEC SQL BEGIN DECLARE SECTION;
int foo[SIZE];
EXEC SQL END DECLARE SECTION;
> ecpg foo.pgc
ERROR: parse error, expecting `CVARIABLE' or `ICONST' or `']'' or `'('' at
or near "SIZE"
"dtv.pc", line 42: Error: "}" expected instead of EOF.
1 Error(s) detected.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
Check out our new Unlimited Server. No Download or Time Limits!
-----== Over 80,000 Newsgroups - 19 Different Servers! ==-----
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
Check out our new Unlimited Server. No Download or Time Limits!
-----== Over 80,000 Newsgroups - 19 Different Servers! ==-----
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Padgaonkar | 2001-11-27 07:10:47 | Cant load pgtclsh library into application |
Previous Message | Edward Pilipczuk | 2001-11-26 16:03:30 | Fwd: Re: ECPG error on inserting records to DB |