Skip site navigation (1) Skip section navigation (2)

Re: BUG #5812: ecpg problem with array of varchar when using dimension name with length > 12

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Jean-Baptiste Veslin <jean-baptiste(dot)veslin(at)meteo(dot)fr>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5812: ecpg problem with array of varchar when using dimension name with length > 12
Date: 2011-01-08 17:34:00
Message-ID: 20110108173400.GC6208@hyperion.credativ.de (view raw or flat)
Thread:
Lists: pgsql-bugs
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

In response to

pgsql-bugs by date

Next:From: frankDate: 2011-01-08 18:52:38
Subject: Re: BUG #5816: index not used in function
Previous:From: Robert HaasDate: 2011-01-08 11:14:32
Subject: Re: [BUGS] BUG #5814: documentation bug

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group