Re: [INTERFACES] ecpg idea

From: Michael Meskes <Michael_Meskes(at)topmail(dot)de>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] ecpg idea
Date: 1999-02-21 11:54:37
Message-ID: 19990221125437.A582@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Sat, Feb 20, 1999 at 12:56:28PM -0600, James Thompson wrote:
> I just don't like hard coded array sizes linked to table fields. I'd
> rather malloc the memory prior to the fetch.

Hard coded array sizes have one huge advantage: libecpg will know how many
bytes fit in. Thus there won't be a buffer overflow.

Michael
--
Michael Meskes | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire!
Tel.: (+49) 2431/72651 | Use Debian GNU/Linux!
Email: Michael(dot)Meskes(at)gmx(dot)net | Use PostgreSQL!

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Herouth Maoz 1999-02-21 15:45:24 Re: [SQL] INSERT query (using insert from a Java application, concerning String input)
Previous Message Michael Meskes 1999-02-21 11:53:20 Re: [INTERFACES] ecpg idea