Re: [PATCHES] Cast null to int4 upgrading from Version 7.2

Поиск
Список
Период
Сортировка
Искать

Re: [PATCHES] Cast null to int4 upgrading from Version 7.2

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Jim Nasby wrote:
> As a less invasive alternative, I *think* you could create an SQL
> function for casting text to int that treated '' as 0, and then
> replace the built-in CAST with that.

Won't work.  You need to replace the data type input function.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/
FAQ