| От | Tom Lane |
|---|---|
| Тема | Re: Fix PL/Python metadata when there is no result |
| Дата | |
| Msg-id | 20477.1331158442@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Fix PL/Python metadata when there is no result (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: Fix PL/Python metadata when there is no result
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> On ons, 2012-03-07 at 16:49 -0500, Tom Lane wrote:
>> Still, it seems rather arbitrary to say that the row count property is
>> the thing to test for that purpose and no other is. Why not return None
>> for any property that's not sensible?
> Hmm, above you said you were in favor of throwing an error rather than
> returning None?
I said it was a reasonable alternative, not that it was the only one
we should consider. The behavior of .nrows() might be accidental,
but perhaps it is a preferable model to adopt.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера