Re: [BUGS] ecpg preprocessor regression in 9.0

2011-03-11 Thread Heikki Linnakangas
On 01.11.2010 15:47, Heikki Linnakangas wrote: On 01.11.2010 15:31, Heikki Linnakangas wrote: This used to work in the PostgreSQL 8.4 ecpg preprocessor: EXEC SQL EXECUTE mystmt USING 1.23; but in 9.0 it throws an error: floattest.pgc:39: ERROR: variable "1" is not declared Attached is the fu

Re: [BUGS] ecpg preprocessor regression in 9.0

2010-11-02 Thread Korry Douglas
On closer look, it's quite obvious: the code added to ECPGdump_a_type thinks that ECPGt_const is a variable type, and tries to look up the variable. The straightforward fix is this: ... But I wonder if there is a better way to identify variable-kind of ECPGttypes than list the ones that are not. T

Re: [BUGS] ecpg preprocessor regression in 9.0

2010-11-02 Thread Heikki Linnakangas
On 02.11.2010 19:39, Michael Meskes wrote: On Mon, Nov 01, 2010 at 03:47:04PM +0200, Heikki Linnakangas wrote: On closer look, it's quite obvious: the code added to ECPGdump_a_type thinks that ECPGt_const is a variable type, and tries to look up the variable. The straightforward fix is this: ...

Re: [BUGS] ecpg preprocessor regression in 9.0

2010-11-02 Thread Korry Douglas
On closer look, it's quite obvious: the code added to ECPGdump_a_type thinks that ECPGt_const is a variable type, and tries to look up the variable. The straightforward fix is this: ... But I wonder if there is a better way to identify variable-kind of ECPGttypes than list the ones that are not. T

Re: [BUGS] ecpg preprocessor regression in 9.0

2010-11-02 Thread Michael Meskes
On Mon, Nov 01, 2010 at 03:47:04PM +0200, Heikki Linnakangas wrote: > On closer look, it's quite obvious: the code added to > ECPGdump_a_type thinks that ECPGt_const is a variable type, and > tries to look up the variable. The straightforward fix is this: > ... > But I wonder if there is a better w

Re: [BUGS] ecpg preprocessor regression in 9.0

2010-11-01 Thread Heikki Linnakangas
On 01.11.2010 15:31, Heikki Linnakangas wrote: This used to work in the PostgreSQL 8.4 ecpg preprocessor: EXEC SQL EXECUTE mystmt USING 1.23; but in 9.0 it throws an error: floattest.pgc:39: ERROR: variable "1" is not declared Attached is the full test case, drop it in src/interfaces/ecpg/tes

[BUGS] ecpg preprocessor regression in 9.0

2010-11-01 Thread Heikki Linnakangas
This used to work in the PostgreSQL 8.4 ecpg preprocessor: EXEC SQL EXECUTE mystmt USING 1.23; but in 9.0 it throws an error: floattest.pgc:39: ERROR: variable "1" is not declared Attached is the full test case, drop it in src/interfaces/ecpg/test/preproc and compile. I bisected the cause t