Re: STRANGE ecpg OUTPUT - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: STRANGE ecpg OUTPUT
Date
Msg-id 20001016121436.A18767@feivel.credativ.de
Whole thread Raw
In response to STRANGE ecpg OUTPUT  ("Maurizio" <maurizio@dreamtech-it.com>)
List pgsql-interfaces
On Mon, Oct 16, 2000 at 10:57:26AM +0200, Maurizio wrote:
> test1.pgc is the sample program in interfaces/ecpg/test end has the CR at
> the end of the line. Also sqlca.h has the CR. I think the problem is in the
> parser. Do you know where in the sources of ecpg is the fput o fprintf to
> the test1.c?

Sure. But I doubt that that is were the problem resides. After all it does
not look as if the lines in question are the ones completely parsed, but
those that are only run through the lexer. 

In preproc/pgc.l some stuff is just ECHO'ed. I think this may be the one.
You could create a pgc.c containing debugging output and check from there. 
I'd recommend you start checking if your ECHO macro is correct though.

> If you try to see test1.c there are a 0x09 char and not a 0x0A at the end of
> the line.

Strange.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Michael Meskes
Date:
Subject: Re: STRANGE ecpg OUTPUT
Next
From: "Maurizio"
Date:
Subject: Re: STRANGE ecpg OUTPUT