BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION

From: alexsav23(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION
Date: 2013-11-19 22:39:48
Message-ID: E1VitxU-00034v-I6@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2013-11-19 22:46:19 Re: BUG #8606: Materialized View WITH NO DATA bug
Previous Message Bruce Momjian 2013-11-19 21:54:39 Re: BUG #8599: Wrong information in Documentation