Received: from mail.ngi.de ([195.243.0.227]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA49684 for ; Fri, 12 Nov 1999 09:08:03 -0500 (EST) (envelope-from michael@fam-meskes.de) Received: from p3E9D3E3C.dip0.t-ipconnect.de (root@p3E9D3E3C.dip0.t-ipconnect.de [62.157.62.60]) by mail.ngi.de (8.9.3/8.9.3) with ESMTP id PAA93972; Fri, 12 Nov 1999 15:01:00 +0100 (CET) (envelope-from michael@fam-meskes.de) Received: (from michael@localhost) by tanja.fam-meskes.de (8.9.3/8.9.0/Debian/GNU) id OAA01970; Fri, 12 Nov 1999 14:10:51 +0100 Date: Fri, 12 Nov 1999 14:10:51 +0100 From: Michael Meskes To: "Coleman, Andrew" Cc: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] my problems with ecpg and arrays Message-ID: <19991112141051.A1962@fam-meskes.de> Mail-Followup-To: "Coleman, Andrew" , pgsql-interfaces@postgresql.org References: <78166D547FD9D2119FA700805F9FA971C0E9A0@navont3.navo.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: <78166D547FD9D2119FA700805F9FA971C0E9A0@navont3.navo.navy.mil>; from colemana@navo.navy.mil on Mon, Nov 08, 1999 at 10:39:12AM -0600 On Mon, Nov 08, 1999 at 10:39:12AM -0600, Coleman, Andrew wrote: > I'm having problems loading (insert into ..) a c array into a postgres > table. > I have tried all the variations on syntax I can think of, and searched for > the > answer... and either didn't find it or didn't recognize it.. I'm afraid you find a real problem here. I just didn't think about inserting arrays. If you give ecpg an array of int it inserts every single value as one int. That means: insert into foo(bar) values(:intarray) is equal to: for (i=0;i