Content-Length: 261208 | pFad | http://github.com/postgrespro/postgres/commit/30e8b3e58ed56cbc07ae7cd392ee4b9782178ca5

50 In ecpg preprocessor, don't try to look up constants in the test for · postgrespro/postgres@30e8b3e · GitHub
Skip to content

Commit 30e8b3e

Browse files
committed
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.
1 parent 59bacbe commit 30e8b3e

File tree

1 file changed

+1
-1
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/preproc/type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type, const int bra
245245
struct variable *var;
246246

247247
if (type->type != ECPGt_descriptor && type->type != ECPGt_sqlda &&
248-
type->type != ECPGt_char_variable &&
248+
type->type != ECPGt_char_variable && type->type != ECPGt_const &&
249249
brace_level >= 0)
250250
{
251251
char *str;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/30e8b3e58ed56cbc07ae7cd392ee4b9782178ca5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy