X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 273FED1B500 for ; Tue, 16 Sep 2003 07:57:24 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 50720-01 for ; Tue, 16 Sep 2003 04:56:53 -0300 (ADT) Received: from guadiana.unex.es (guadiana.unex.es [158.49.17.23]) by svr1.postgresql.org (Postfix) with ESMTP id C5469D1B506 for ; Tue, 16 Sep 2003 04:56:46 -0300 (ADT) Received: from alberto by guadiana.unex.es with local (Exim 3.35 #1 (Debian)) id 19zAhU-0003Pu-00; Tue, 16 Sep 2003 09:56:40 +0200 Date: Tue, 16 Sep 2003 09:56:40 +0200 To: Tom Lane , pgsql-interfaces@postgresql.org Subject: Re: ColumnName and ColumnNumber in libpq (C interface) Message-ID: <20030916075640.GA10965@guadiana.unex.es> References: <3F65715A.BDCAD1FB@rodos.fzk.de> <10317.1063637327@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <10317.1063637327@sss.pgh.pa.us> User-Agent: Mutt/1.3.28i From: Alberto Cabello Sanchez X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/33 X-Sequence-Number: 4451 On Mon, Sep 15, 2003 at 10:48:47AM -0400, Tom Lane wrote: > > I wonder whether this behavior is appropriate for PQfnumber, though. > It's never been documented ... and certainly should be if we decide > we should keep it. Comments? > I think PQfnumber(res,PQfname(res,0))==-1 should_never_happen (c) with a valid PGresult * res. Maybe PQfname(res,0) should be "\"Bar\"", not "Bar". Have a nice coding. -- ----------------------- Alberto Cabello Sánchez alberto@unex.es Servicio de Informática 924 289 351 -----------------------