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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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