The following bug has been logged on the website:
Bug reference: 8608
Logged by: Alexei Savchik
Email address: alexsav23(at)gmail(dot)com
PostgreSQL version: 9.3.1
Operating system: Windows 8 x64
Description:
void MyFunc( MyClass*unit_address )
{
EXEC SQL BEGIN DECLARE SECTION;
unsigned char var1[sizeof(MyClass)];
EXEC SQL END DECLARE SECTION;
}
d:\>"c:\Program Files\PostgreSQL\9.3\bin\ecpg.exe"-o 1.c 1.pgc
1.pgc: 4: ERROR: syntax error at or near "("
error deleting output file "1.c"
http://stackoverflow.com/questions/20049432/ecpg-sizeof-in-exec-sql-declare-section