Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 75C591336FA7 for ; Sat, 8 Jan 2011 18:03:20 -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 10915-02 for ; Sat, 8 Jan 2011 22:03:09 +0000 (UTC) X-Greylist: delayed 00:07:28.29289 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 0929B1337B83 for ; Sat, 8 Jan 2011 18:03:08 -0400 (AST) Received: from hyperion (unknown [209.117.47.253]) (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 F2E961B40C1; Sat, 8 Jan 2011 22:55:36 +0100 (CET) Received: by hyperion (Postfix, from userid 1000) id 02E1AE4D8; Sat, 8 Jan 2011 18:34:00 +0100 (CET) Date: Sat, 8 Jan 2011 18:34:00 +0100 From: Michael Meskes To: Jean-Baptiste Veslin Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5812: ecpg problem with array of varchar when using dimension name with length > 12 Message-ID: <20110108173400.GC6208@hyperion.credativ.de> References: <201101041444.p04EiPZo068102@wwwmaster.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201101041444.p04EiPZo068102@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=-0.308 tagged_above=-5 required=5 tests=BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592 X-Spam-Level: X-Archive-Number: 201101/68 X-Sequence-Number: 29090 On Tue, Jan 04, 2011 at 02:44:25PM +0000, Jean-Baptiste Veslin wrote: > Description: ecpg problem with array of varchar when using dimension > name with length > 12 > ... > This problem seems to be because of the static declaration "char dim[14L]" > in ecpg.trailer > > I think it wouldn't be very difficult to calculate the dimension of "dim" > dynamically (strlen(dimension) + 2) Thanks for spotting this, I have no idea why this fixed size limit is in there anyway. I will remove it. 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