Re: BUG #1962: ECPG and VARCHAR
От | C Wegrzyn |
---|---|
Тема | Re: BUG #1962: ECPG and VARCHAR |
Дата | |
Msg-id | 434E88C5.9080801@garbagedump.com обсуждение исходный текст |
Ответ на | Re: BUG #1962: ECPG and VARCHAR (Michael Fuhr <mike@fuhr.org>) |
Ответы |
Re: BUG #1962: ECPG and VARCHAR
|
Список | 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 по дате отправления: