]> granicus.if.org Git - postgresql/commitdiff
Fixed bug in handling of pointers to structs.
authorMichael Meskes <meskes@postgresql.org>
Fri, 16 Mar 2001 13:05:57 +0000 (13:05 +0000)
committerMichael Meskes <meskes@postgresql.org>
Fri, 16 Mar 2001 13:05:57 +0000 (13:05 +0000)
src/interfaces/ecpg/preproc/variable.c

index d97ef59f4460ada08a6a3be1ba89504fb56e5b35..0c5749b7891e0c32bb63063e6b3aa73795c30fbc 100644 (file)
@@ -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);