Received: from pc63.meskes.de (root@as11-asy78.rp-plus.de [149.221.93.206]) by hub.org (8.9.2/8.9.1) with ESMTP id NAA28249 for ; Sun, 21 Feb 1999 13:48:52 -0500 (EST) (envelope-from Michael.Meskes@gmx.net) Received: (from meskes@localhost) by pc63.meskes.de (8.9.3/8.9.0/Debian/GNU) id MAA00590 for pgsql-interfaces@postgreSQL.org; Sun, 21 Feb 1999 12:54:37 +0100 Date: Sun, 21 Feb 1999 12:54:37 +0100 From: Michael Meskes To: PostgreSQL Interfaces Subject: Re: [INTERFACES] ecpg idea Message-ID: <19990221125437.A582@gmx.net> Mail-Followup-To: PostgreSQL Interfaces References: <36CF00FB.53393C31@alumni.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from James Thompson on Sat, Feb 20, 1999 at 12:56:28PM -0600 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!