X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4B0C9D1B4E5 for ; Fri, 31 Oct 2003 09:59:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 61237-02 for ; Fri, 31 Oct 2003 05:58:59 -0400 (AST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by svr1.postgresql.org (Postfix) with ESMTP id 2B031D1B4E8 for ; Fri, 31 Oct 2003 05:58:57 -0400 (AST) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AFW3W-0001ap-00; Fri, 31 Oct 2003 10:58:58 +0100 Received: from [80.142.162.55] (helo=fam-meskes.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AFW3V-0005ZJ-00; Fri, 31 Oct 2003 10:58:57 +0100 Received: by fam-meskes.de (Postfix, from userid 1000) id E86DE10F193; Fri, 31 Oct 2003 10:58:54 +0100 (CET) Date: Fri, 31 Oct 2003 10:58:54 +0100 From: Michael Meskes To: Cobus Carstens Cc: pgsql-interfaces@postgresql.org Subject: Re: Message-ID: <20031031095854.GA20334@feivel.fam-meskes.de> Mail-Followup-To: Cobus Carstens , pgsql-interfaces@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/64 X-Sequence-Number: 4553 On Tue, Oct 28, 2003 at 07:45:42AM +0200, Cobus Carstens wrote: > I'm running Postgresql 7.3.2 on Mandrake 9.1. > I'm using ecpg (version 2.10.0) to compile the embedded sql code in my C > programs. > > The problem experienced has to do with array indexing in SQL statements. > I browsed your test files in the CVS repository and found one > (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/ > ecpg/test/test1.pgc?rev=1.31.2.1&content-type=text/x-cvsweb-markup) that > contains the code I would like to be able to use. > > When I precompile the abovementioned file with ecpg, I get the following > error > test1.pgc:130: parse error at or near "[". The syntax used in test1.pgc in CVS is only supported in ecpg 3.0.0 coming with PostgreSQL 7.4. If you want to use the older version check for an older version of test1.pgc. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!