problem w/ struct in DECLARE SECTION - Mailing list pgsql-general

From bayard kohlhepp
Subject problem w/ struct in DECLARE SECTION
Date
Msg-id 381743AE.3A5A16D9@crosslink.net
Whole thread Raw
List pgsql-general
i have a struct declaration (struct user {...}) that compiles ok -
contains chars, shorts, ints, longs.

1. if it is outside of BEGIN/END DECLARE, then variables declared inside
BEGIN/END
    that use it (ie, "struct user localvar;") fail with a parse error
from ecpg.
2. if i put it inside a BEGIN/END DECLARE SECTION, ecpg reports a parse
error at the
    closing '}'.

typedefs don't seem to help, either. how can i declare a structure that
will be used in many functions (ie, "struct user * x")?


pgsql-general by date:

Previous
From: Ted Nolan SRI Augusta GA
Date:
Subject: Re: [GENERAL] Windows Server?
Next
From: "amy cheng"
Date:
Subject: Re: [GENERAL] Auto Ordering