Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30e8b3e

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 byaccident, 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 parent59bacbe commit30e8b3e

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
structvariable*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)

[8]ページ先頭

©2009-2025 Movatter.jp