| От | Jeff Davis |
|---|---|
| Тема | strange code in array_in |
| Дата | |
| Msg-id | 1319905890.21603.10.camel@jdavis обсуждение исходный текст |
| Ответы |
Re: strange code in array_in
|
| Список | pgsql-hackers |
In array_in(), I see the following code: my_extra->element_type = ~element_type; It seems like it was explicitly changed from InvalidOid to ~element_type. At first I thought it was a mistake, but then I thought maybe it was to ensure that the next branch was taken even if element_type == InvalidOid. But the rest of the lookups will surely fail on InvalidOid, and it seems like it would be easy to test for InvalidOid at the beginning if we wanted to fail. Can someone please explain, and perhaps include a comment indicating what's going on? Or is it just too early and I missed something simple? Regards,Jeff Davis
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера