Re: ColumnName and ColumnNumber in libpq (C interface)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
Cc: alberto(at)unex(dot)es, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Date: 2003-09-15 14:48:47
Message-ID: 10317.1063637327@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Christoph Haller <ch(at)rodos(dot)fzk(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Robert Treat 2003-09-15 19:56:58 Re: Trigger updates MS SQL table
Previous Message Christoph Haller 2003-09-15 13:54:14 Re: PQconnectdb question