mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
In ecpg preprocessor, don't try to look up constants in the test for
variable hiding. A constant is not a variable. It worked in most cases by accident, because we add constants to the global list of variables (why?), but float constants like 1.23 were interpreted as struct field references, and not found. Backpatch to 9.0, where the test for variable hiding was added.
This commit is contained in:
parent
59bacbe147
commit
30e8b3e58e
@ -245,7 +245,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type, const int bra
|
||||
struct variable *var;
|
||||
|
||||
if (type->type != ECPGt_descriptor && type->type != ECPGt_sqlda &&
|
||||
type->type != ECPGt_char_variable &&
|
||||
type->type != ECPGt_char_variable && type->type != ECPGt_const &&
|
||||
brace_level >= 0)
|
||||
{
|
||||
char *str;
|
||||
|
Loading…
Reference in New Issue
Block a user