pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alexsav23@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION
Date: Tue, 19 Nov 2013 22:39:48 +0000
Message-ID: <E1VitxU-00034v-I6@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (6+ messages)  latest in thread

Message-ID: <E1VitxU-00034v-I6@wrigleys.postgresql.org>
Permalink:  ../E1VitxU-00034v-I6@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1VitxU-00034v-I6@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alexsav23@gmail.com
  Subject: Re: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION
  In-Reply-To: <E1VitxU-00034v-I6@wrigleys.postgresql.org>
  References: <E1VitxU-00034v-I6@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox