Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjuRE-0005Vs-7j for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 17:22:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VjuRD-000241-MC for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 17:22:39 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitxd-0004tP-9c for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 22:39:57 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitxa-0007XA-NY for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 22:39:56 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitxa-0004PJ-23 for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 22:39:54 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VitxU-00034v-I6 for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 22:39:48 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION To: pgsql-bugs@postgresql.org From: alexsav23@gmail.com Message-Id: Date: Tue, 19 Nov 2013 22:39:48 +0000 X-Pg-Spam-Score: 0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8608 Logged by: Alexei Savchik Email address: alexsav23@gmail.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs