Problem with ecpg - Mailing list pgsql-general

From Carmen Gloria Sepulveda Dedes
Subject Problem with ecpg
Date
Msg-id 3FA26304.12AE689B@atichile.com
Whole thread Raw
Responses Re: Problem with ecpg  (Michael Meskes <meskes@postgresql.org>)
List pgsql-general
Hello.

I have a problem with ecpg precompiler.

In a code like:

****
main()
{
 .... some calls to EXEC SQL
 .... printf(" ... % ... \n, var_x);
 ....
}
****

... we omited a " at the printf statement (syntax error).

To compile, we do"ecpg code.pgc" and the standart output prints:
....
prueba.pgc:19: ERROR: Unterminated quoted identifier
prueba.pgc:19: ERROR: Unterminated quoted identifier
prueba.pgc:19: ERROR: Unterminated quoted identifier
prueba.pgc:19: ERROR: Unterminated quoted identifier
prueba.pgc:19: ERROR: Unterminated quoted identifier
....
in a loop (stop with ctrl-d).

When we compile with Workshop, this output go to a file in the /tmp
directory (a very big file).

The questions are:
It's a bug of ecpg o it's normal?
How can I resolve this?

Thanks.

CG


pgsql-general by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: ALTER Table
Next
From: Tom Lane
Date:
Subject: Re: slow query performance