pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <Michael_Meskes@topmail.de>
To: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] ecpg idea
Date: Sun, 21 Feb 1999 12:54:37 +0100
Message-ID: <19990221125437.A582@gmx.net> (raw)
In-Reply-To: <Pine.GSO.4.05.9902201245470.5372-100000@noether.math.ksu.edu>
References: <36CF00FB.53393C31@alumni.caltech.edu>
	<Pine.GSO.4.05.9902201245470.5372-100000@noether.math.ksu.edu>

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!



view thread (6+ messages)

Message-ID: <19990221125437.A582@gmx.net>
Permalink:  ../19990221125437.A582@gmx.net/
Also on:    postgresql.org/message-id/19990221125437.A582@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: Michael_Meskes@topmail.de
  Subject: Re: [INTERFACES] ecpg idea
  In-Reply-To: <19990221125437.A582@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox