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 AC6BCD1B4F2 for ; Mon, 15 Sep 2003 14:48:58 +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 81245-08 for ; Mon, 15 Sep 2003 11:48:51 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 09322D1B50F for ; Mon, 15 Sep 2003 11:48:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h8FEml4A010318; Mon, 15 Sep 2003 10:48:47 -0400 (EDT) To: Christoph Haller Cc: alberto@unex.es, pgsql-interfaces@postgresql.org Subject: Re: ColumnName and ColumnNumber in libpq (C interface) In-reply-to: <3F65715A.BDCAD1FB@rodos.fzk.de> References: <3F65715A.BDCAD1FB@rodos.fzk.de> Comments: In-reply-to Christoph Haller message dated "Mon, 15 Sep 2003 09:59:22 +0200" Date: Mon, 15 Sep 2003 10:48:47 -0400 Message-ID: <10317.1063637327@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/31 X-Sequence-Number: 4449 Christoph Haller writes: >> I thougth running this helloworldish C program: >> should print >> Bar >> 0 >> >> but stdout shows >> Bar >> -1 >> > All names are folded to lowercase, except enclosed in double quotes. So > printf("%d\n",PQfnumber(res,"\"Bar\"")); > gives you the right result. 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? regards, tom lane