Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3097A1337B91 for ; Mon, 29 Nov 2010 06:55:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 70335-08 for ; Mon, 29 Nov 2010 10:55:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gauss.credativ.com (gauss.credativ.com [91.190.177.186]) by mail.postgresql.org (Postfix) with ESMTP id C987E1335B36 for ; Mon, 29 Nov 2010 06:55:46 -0400 (AST) Received: from feivel (exit.credativ.com [87.139.82.80]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id A4A80550004; Mon, 29 Nov 2010 11:55:42 +0100 (CET) Received: by feivel (Postfix, from userid 1000) id 98E8210A44E; Mon, 29 Nov 2010 11:55:34 +0100 (CET) Date: Mon, 29 Nov 2010 11:55:33 +0100 From: Michael Meskes To: Joaquim Salles Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5762: ecpg Message-ID: <20101129105533.GA24450@feivel.credativ.lan> References: <201011221541.oAMFf6KA058520@wwwmaster.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201011221541.oAMFf6KA058520@wwwmaster.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/199 X-Sequence-Number: 28779 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