pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Pavel PaJaSoft Janousek <janousek@fonet.cz>
Cc: PgSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] Error in ECPG and #if...
Date: Wed, 21 Apr 1999 13:52:04 +0200
Message-ID: <19990421135204.B343@gmx.net> (raw)
In-Reply-To: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz>
References: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz>

On Tue, Apr 20, 1999 at 05:59:13PM +0200, Pavel PaJaSoft Janousek wrote:
>     I use ECPG distributed with PostgreSQL 6.4.2. and I found next
> error..:-(

Not really.

>     ECPG don't know C/C++ preprocessing directives such as #if, #ifdef
> etc...

That's correct. ECPG only parses stuff between EXEC SQL and ';'. 

> 15. #if 0
> 16. exec sql select count (*) from
> 17. exec sql commit;
> 18. #endif

This is not C code. 

>     In this ECPG  say: parse error on line 16.

Yes, because ECPG parses all embedded SQL code. It does not know about cpp
code.

Michael 

-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net          | Use PostgreSQL!



view thread (3+ messages)

Message-ID: <19990421135204.B343@gmx.net>
Permalink:  ../19990421135204.B343@gmx.net/
Also on:    postgresql.org/message-id/19990421135204.B343@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, janousek@fonet.cz
  Subject: Re: [INTERFACES] Error in ECPG and #if...
  In-Reply-To: <19990421135204.B343@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox