| От | Pavel Stehule |
|---|---|
| Тема | Re: WIP: hooking parser |
| Дата | |
| Msg-id | 162867790902160535i328494a0ia2f95fa4bb3eabc@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: WIP: hooking parser (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: WIP: hooking parser
Re: WIP: hooking parser |
| Список | pgsql-hackers |
Next sample of parser hook using:
attachment contains module that transform every empty string to null.
I am not sure, if this behave is exactly compatible with Oracle, but
for first iteration it is good.
postgres=# select length('') is null;
?column?
----------
t
(1 row)
I thing, so this should be used for emulation of some constructors too.
Regards
Pavel Stehule
2009/2/13 Peter Eisentraut <peter_e@gmx.net>:
> Heikki Linnakangas wrote:
>>
>> And on top of that, decode() is supposed to do short-circuit evaluation of
>> the arguments.
>
> Then the only solution is to hack it right into the parser.
>
> There is an existing decode() function however ...
>
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера