From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | fredy(dot)k(at)gmx(dot)net |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: ECPG does not recognise typedefs |
Date: | 2003-01-31 06:10:44 |
Message-ID: | 200301310610.h0V6Aig14680@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Is your typedef in a 'declare' section?
---------------------------------------------------------------------------
Fredy K. GMX wrote:
> Postgre Version: 7.3
> OS: Linux Mandrake 9.0
>
> In a C-File I have included a header file which globaly defines some typedefs
> of variable types like following:
> typedef long MYLONG;
>
> When I write in the file the following definition:
> EXEC SQL begin declare section;
> static MYLONG sqlLongHostVar;
> EXEC SQL end declare section;
>
> the ecpg precompiler seems not to recognise this type although it is defined
> in the included header file. The following error occurs:
> ERROR: invalid datatype 'MYLONG'
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Insyde | 2003-01-31 16:33:01 | Problem when adding an existing primary key |
Previous Message | Vincent Janelle | 2003-01-31 01:08:22 | Re: [pgsql-bugs] Daily Digest V1 #784 |