From: | "Pavel PaJaSoft Janousek" <janousek(at)fonet(dot)cz> |
---|---|
To: | "PgSQL Interfaces" <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Error in ECPG and #if... |
Date: | 1999-04-20 15:59:13 |
Message-ID: | 000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hi all,
I use ECPG distributed with PostgreSQL 6.4.2. and I found next
error..:-(
ECPG don't know C/C++ preprocessing directives such as #if, #ifdef
etc...
I try this:
..
...
15. #if 0
16. exec sql select count (*) from
17. exec sql commit;
18. #endif
In this ECPG say: parse error on line 16.
But when I use this:
15. // exec sql select count (*) from
16. // exec sql commit;
ECPG parse this correctly...
I think, that this is wrong, that ECPG use as comment only /* and //
comment. Construction such as #if 0 is very common way to disable some
source and enable this later... - mainly in debugging proces, of cource.
Or do I something wrong?
Thanks...
----------------------------------------------------------------------------
--
Pavel Janousek (PaJaSoft) FoNet, spol. s r. o.
Vyvoj software, sprava siti, Unix, Web, Y2K Anenska 11, 602 00
Brno
E-mail: mailto:Janousek(at)FoNet(dot)Cz Tel.: +420 5 4324
4749
SMS: mailto:P(dot)Janousek(at)SMS(dot)Paegas(dot)Cz Fax.: +420 5 4324
4751
WWW: http://WWW.FoNet.Cz/ E-mail:
mailto:Info(at)FoNet(dot)Cz
----------------------------------------------------------------------------
---
From | Date | Subject | |
---|---|---|---|
Next Message | JT Kirkpatrick | 1999-04-20 18:58:48 | TUPLES <> HEAP |
Previous Message | Peter Mount | 1999-04-20 15:05:49 | RE: [INTERFACES] Compiling jdbc for Linux and Solaris |