| От | Josh Berkus |
|---|---|
| Тема | Re: Inconsistent behavior on Array & Is Null? |
| Дата | |
| Msg-id | 200404012009.08305.josh@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: Inconsistent behavior on Array & Is Null? (Joe Conway <mail@joeconway.com>) |
| Список | pgsql-hackers |
Joe, > Sure, and in both cases array_upper is undefined because there are no > array dimensions to speak of. I guess you might argue that array_upper, > array_lower, and array_dims should all produce an ERROR on null input > instead of NULL. But that would have been an un-backward compatible > change for array_dims at the time array_lower and array_upper were > created. I don't really believe they should throw an ERROR on an empty > array though. OK, I understand the logic now. Thanks. I guess this is another case where we're haunted by the ANSI committee's failure to define both and "unknown" and a "not applicable" value instead of the unitary NULL. -- -Josh BerkusAglio Database SolutionsSan Francisco
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера