Re: ColumnName and ColumnNumber in libpq (C interface)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ColumnName and ColumnNumber in libpq (C interface)
Дата
Msg-id 10317.1063637327@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ColumnName and ColumnNumber in libpq (C interface)  (Christoph Haller <ch@rodos.fzk.de>)
Ответы Re: ColumnName and ColumnNumber in libpq (C interface)  (Alberto Cabello Sanchez <alberto@unex.es>)
Список 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 по дате отправления:

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: PQconnectdb question
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: ColumnName and ColumnNumber in libpq (C interface)