Re: BUG #1962: ECPG and VARCHAR

From: C Wegrzyn <lists(at)garbagedump(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1962: ECPG and VARCHAR
Date: 2005-10-13 16:18:13
Message-ID: 434E88C5.9080801@garbagedump.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers pgsql-patches

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Pitt 2005-10-13 16:26:38 BUG #1963: SSL certificate permission check is too strict
Previous Message Karl O. Pinc 2005-10-13 15:51:15 Re: BUG #1956: Plpgsql top-level DECLARE does not share

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-10-13 16:57:05 Allowed timezone values
Previous Message Bruce Momjian 2005-10-13 16:10:14 Re: Minor point about contrib/xml2 functions "IMMUTABLE" marking

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-10-13 16:21:36 Re: Documentation typos
Previous Message Andrew Dunstan 2005-10-13 16:17:40 Re: Documentation typos