Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for
Дата
Msg-id 14780.1110234676@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> - Is there a reason why you've made the type of SQLCODE `text', rather
> than integer?

The value isn't an integer ... which gets back to my point that this is
not compatible with Oracle's idea of SQLCODE and therefore we should *not*
use that name for it.

BTW: the patch has some memory-leak problems, I believe, because it is
studiously not following the var->freeval protocol.  Now that I look,
it appears to be copied-and-pasted from some existing code that also
gets this wrong :-(

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Continue transactions after errors in psql