Re: [INTERFACES] ecpg idea - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: [INTERFACES] ecpg idea
Date
Msg-id 19990221125437.A582@gmx.net
Whole thread Raw
In response to Re: [INTERFACES] ecpg idea  (James Thompson <jamest@math.ksu.edu>)
List 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.Meskes@gmx.net          | Use PostgreSQL!

pgsql-interfaces by date:

Previous
From: "Justin R. Smith"
Date:
Subject: Quotes in input
Next
From: The Hermit Hacker
Date:
Subject: Crystal Report ...