pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Joaquim Salles <joaquimsalles@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5762: ecpg
Date: Mon, 29 Nov 2010 11:55:33 +0100
Message-ID: <20101129105533.GA24450@feivel.credativ.lan> (raw)
In-Reply-To: <201011221541.oAMFf6KA058520@wwwmaster.postgresql.org>
References: <201011221541.oAMFf6KA058520@wwwmaster.postgresql.org>

On Mon, Nov 22, 2010 at 03:41:06PM +0000, Joaquim Salles wrote:
> In oracle I have:
> 
>  EXEC SQL BEGIN DECLARE SECTION;
> 
>  typedef struct _SItemInfo
>  {
>      varchar strNome [40 +1];
> 
>  SItemInfo};

This seems to have the order reversed. Shouldn't it be 
} SItemInfo; ?

>   EXEC SQL SELECT name INTO: FROM sitem delivery;

Dito here..

> At C code does not exist in the structure sizeof (struct
> varchar_strNome_509) because
> she 'and a member of struct SItemInfo in the above case.

Sorry but I do not understand what you're saying here.

Michael

-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



view thread (2+ messages)

Message-ID: <20101129105533.GA24450@feivel.credativ.lan>
Permalink:  ../20101129105533.GA24450@feivel.credativ.lan/
Also on:    postgresql.org/message-id/20101129105533.GA24450@feivel.credativ.lan

 · 

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: meskes@postgresql.org, joaquimsalles@gmail.com
  Subject: Re: BUG #5762: ecpg
  In-Reply-To: <20101129105533.GA24450@feivel.credativ.lan>
  References: <201011221541.oAMFf6KA058520@wwwmaster.postgresql.org> <20101129105533.GA24450@feivel.credativ.lan>

* 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