Problem with ecpg

From: Carmen Gloria Sepulveda Dedes <csepulveda(at)atichile(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem with ecpg
Date: 2003-10-31 13:26:28
Message-ID: 3FA26304.12AE689B@atichile.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gaetano Mendola 2003-10-31 14:06:18 Re: ALTER Table
Previous Message Shridhar Daithankar 2003-10-31 12:57:46 Re: ALTER Table