From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Haller <ch@rodos.fzk.de>
Cc: alberto@unex.es
Cc: pgsql-interfaces@postgresql.org
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Date: Mon, 15 Sep 2003 10:48:47 -0400
Message-ID: <10317.1063637327@sss.pgh.pa.us> (raw)
In-Reply-To: <3F65715A.BDCAD1FB@rodos.fzk.de>
References: <3F65715A.BDCAD1FB@rodos.fzk.de>
Christoph Haller <ch@rodos.fzk.de> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, ch@rodos.fzk.de, alberto@unex.es
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
In-Reply-To: <10317.1063637327@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox