re: BEGIN/END DECLARE problems

From: bayard kohlhepp <bayardk(at)crosslink(dot)net>
To: pgsql mailing list <pgsql-general(at)hub(dot)org>
Subject: re: BEGIN/END DECLARE problems
Date: 1999-10-27 18:40:44
Message-ID: 3817472C.4CD25D76@crosslink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

sorry - i'm using pg 6.4.2, mandrake (RedHat) linux 6.0, pentium

code example that works:

EXEC SQL BEGIN DECLARE SECTION;

struct mouse_s
{
char x[10];
long y;
} mou;

EXEC SQL END DECLARE SECTION;

ecpg is unhappy -"parse error" - if i remove the "mou" declaration, or,
later in my code, try to do:

EXEC SQL BEGIN DECLARE SECTION;
struct mouse_s *mptr;
EXEC SQL END DECLARE SECTION;

Browse pgsql-general by date

  From Date Subject
Next Message Stuart Rison 1999-10-27 18:41:42 Re: [GENERAL] Auto Ordering
Previous Message bayard kohlhepp 1999-10-27 18:25:50 problem w/ struct in DECLARE SECTION