ECPG does not recognise typedefs

From: "Fredy K(dot) GMX" <fredy(dot)k(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: ECPG does not recognise typedefs
Date: 2003-01-27 14:54:55
Message-ID: 200301271554.55236.fredy.k@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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'

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Żak 2003-01-27 15:58:46 Bug in LIKE operator processing
Previous Message Tom Lane 2003-01-27 14:19:12 Re: Cursor case-sensitivity