Re: ColumnName and ColumnNumber in libpq (C interface) - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: ColumnName and ColumnNumber in libpq (C interface)
Date
Msg-id 10317.1063637327@sss.pgh.pa.us
Whole thread Raw
In response to Re: ColumnName and ColumnNumber in libpq (C interface)  (Christoph Haller <ch@rodos.fzk.de>)
Responses Re: ColumnName and ColumnNumber in libpq (C interface)
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: Christoph Haller
Date:
Subject: Re: PQconnectdb question
Next
From: Christoph Haller
Date:
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)