pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Jean-Baptiste Veslin <jean-baptiste.veslin@meteo.fr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5812: ecpg problem with array of varchar when using dimension name with length > 12
Date: Sat, 8 Jan 2011 18:34:00 +0100
Message-ID: <20110108173400.GC6208@hyperion.credativ.de> (raw)
In-Reply-To: <201101041444.p04EiPZo068102@wwwmaster.postgresql.org>
References: <201101041444.p04EiPZo068102@wwwmaster.postgresql.org>

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



view thread (2+ messages)

Message-ID: <20110108173400.GC6208@hyperion.credativ.de>
Permalink:  ../20110108173400.GC6208@hyperion.credativ.de/
Also on:    postgresql.org/message-id/20110108173400.GC6208@hyperion.credativ.de

 · 

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, jean-baptiste.veslin@meteo.fr
  Subject: Re: BUG #5812: ecpg problem with array of varchar when using dimension name with length > 12
  In-Reply-To: <20110108173400.GC6208@hyperion.credativ.de>
  References: <201101041444.p04EiPZo068102@wwwmaster.postgresql.org> <20110108173400.GC6208@hyperion.credativ.de>

* 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