Re: BUG #1962: ECPG and VARCHAR - Mailing list pgsql-bugs

From C Wegrzyn
Subject Re: BUG #1962: ECPG and VARCHAR
Date
Msg-id 434E88C5.9080801@garbagedump.com
Whole thread Raw
In response to Re: BUG #1962: ECPG and VARCHAR  (Michael Fuhr <mike@fuhr.org>)
Responses Re: BUG #1962: ECPG and VARCHAR
List pgsql-bugs
Michael Fuhr wrote:

>On Thu, Oct 13, 2005 at 02:24:27PM +0100, Charles Wegrzyn wrote:
>
>
>>I have code that under 8.0.3 works:
>>
>>  VARCHAR t[MAX_TENANT_SIZE+1];
>>  VARCHAR o[MAX_OID_SIZE+1];
>>
>>In 8.0.4 I found this throws an error during the ecpg step:
>>
>>tenant.ec:375: ERROR: pointer to varchar are not implemented
>>tenant.ec:376: ERROR: pointer to varchar are not implemented
>>
>>
>
>ecpg in 8.0.4 seems not to like the macros.  I get the same error,
>but not if I do this:
>
>    VARCHAR  t[256];
>    VARCHAR  o[256];
>
>ecpg in 8.1beta3 works either way.
>
>
>
Michael,

 Yes I found out the same thing. Unfortunately it isn't quite that
simple for me. It isn't a very good idea to hard-code fixed sizes in
executables. I have a file with all sorts of #defines in it. If the bug
doesn't get fixed it means that I will need to run CPP over the code
before I run ecpg, which is just ugly.

Chuck Wegrzyn

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #1962: ECPG and VARCHAR
Next
From: "tadayoshi sato"
Date:
Subject: BUG #1967: Respons(Binary) is not correctly by PQexecParams