problem w/ struct in DECLARE SECTION

From: bayard kohlhepp <bayardk(at)crosslink(dot)net>
To: pgsql mailing list <pgsql-general(at)hub(dot)org>
Subject: problem w/ struct in DECLARE SECTION
Date: 1999-10-27 18:25:50
Message-ID: 381743AE.3A5A16D9@crosslink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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")?

Browse pgsql-general by date

  From Date Subject
Next Message bayard kohlhepp 1999-10-27 18:40:44 re: BEGIN/END DECLARE problems
Previous Message Ted Nolan SRI Augusta GA 1999-10-27 18:14:04 Re: [GENERAL] Windows Server?