aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/variable.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2001-03-16 13:05:57 +0000
committerMichael Meskes <meskes@postgresql.org>2001-03-16 13:05:57 +0000
commit90c1e2cc43d647332a9eba903337bdb66ba95f52 (patch)
tree371efa52d259ad50974420554d32f5df060128a9 /src/interfaces/ecpg/preproc/variable.c
parent935017457bb4a5efffcf1a734d1b1b817f225c19 (diff)
downloadpostgresql-90c1e2cc43d647332a9eba903337bdb66ba95f52.tar.gz
postgresql-90c1e2cc43d647332a9eba903337bdb66ba95f52.zip
Fixed bug in handling of pointers to structs.
Diffstat (limited to 'src/interfaces/ecpg/preproc/variable.c')
-rw-r--r--src/interfaces/ecpg/preproc/variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c
index d97ef59f446..0c5749b7891 100644
--- a/src/interfaces/ecpg/preproc/variable.c
+++ b/src/interfaces/ecpg/preproc/variable.c
@@ -78,7 +78,7 @@ find_struct(char *name, char *next)
if (c == '-')
{
- if (p->type->typ != ECPGt_struct && p->type->typ != ECPGt_union)
+ if (p->type->typ != ECPGt_array)
{
sprintf(errortext, "variable %s is not a pointer", name);
mmerror(ET_FATAL, errortext);