]> granicus.if.org Git - postgresql/commit
In ecpg preprocessor, don't try to look up constants in the test for
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 11 Mar 2011 13:44:40 +0000 (15:44 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 11 Mar 2011 15:23:31 +0000 (17:23 +0200)
commit2f418e8a174136507fb1f80214415b144e24850c
treea0fff709f5992d678ecf0419114b8d5762c26425
parentb42225c101e61afdc9b4f5873654bc1e0c9f9179
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.
src/interfaces/ecpg/preproc/type.c