Re: Embedded SQL library bug

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: David Flater <dflater(at)nist(dot)gov>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Embedded SQL library bug
Date: 2004-05-22 11:26:43
Message-ID: 20040522112643.GA5714@1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, May 21, 2004 at 05:03:40PM -0400, David Flater wrote:
> In Embedded SQL, sometimes get segmentation faults on selecting part
> or all of a float8[] array into a char array.

Thanks for the report. The problem is that ecpg does not know that it
gets an array of floats but expects a character string since the
variable is char[]. Seeing that it gets more than one value it tries to
bulk load the data into an array of strings which obviously doesn't
exist.

I will have to see what solution is best for this.

Michael

--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-05-22 16:58:16 BUG #1155: AbstractJdbc2ResultSet:parseQuery ; in tablename
Previous Message David Flater 2004-05-21 21:03:40 Embedded SQL library bug