Re: libpq-fe: PQgetvalue() ?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: libpq-fe: PQgetvalue() ?
Дата
Msg-id 200611250010.kAP0AsO17512@momjian.us
обсуждение исходный текст
Ответ на Re: libpq-fe: PQgetvalue() ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > This has been saved for the 8.3 release:
> 
> > Danny Milosavljevic wrote:
> >> Shouldn't the return type of "PQgetvalue" be "const char*", then?
> 
> The pluses and minuses of const-ifying libpq's API have been discussed
> before.  If we were working in a green field we'd no doubt do it, but
> I'm not sure that users would thank us for breaking their existing
> working code.  Adding a "const" to a function result value has direct
> impact on calling applications...

OK, I was afraid of that.  Removed from the 8.3 queue.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq-fe: PQgetvalue() ?
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: [PATCHES] Avg performance for int8/numeric