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

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 (view raw, whole thread or download thread mbox)
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

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


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

pgsql-bugs by date

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

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