mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
When processing nested structure pointer variables ecpg always expected an
array datatype which of course is wrong. Applied patch by Muhammad Usama <m.usama@gmail.com> to fix this.
This commit is contained in:
parent
1fc698cf14
commit
086cf1458c
@ -100,7 +100,11 @@ find_struct_member(char *name, char *str, struct ECPGstruct_member * members, in
|
||||
}
|
||||
break;
|
||||
case '-':
|
||||
return (find_struct_member(name, end, members->type->u.element->u.members, brace_level));
|
||||
if (members->type->type == ECPGt_array)
|
||||
return (find_struct_member(name, ++end, members->type->u.element->u.members, brace_level));
|
||||
else
|
||||
return (find_struct_member(name, ++end, members->type->u.members, brace_level));
|
||||
break;
|
||||
break;
|
||||
case '.':
|
||||
if (members->type->type == ECPGt_array)
|
||||
|
Loading…
Reference in New Issue
Block a user