Re: Pgsql dynamic statements and null values

Поиск
Список
Период
Сортировка
От Ragnar Hafstað
Тема Re: Pgsql dynamic statements and null values
Дата
Msg-id 1110357113.12057.0.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Pgsql dynamic statements and null values  ("Guy Rouillier" <guyr@masergy.com>)
Список pgsql-general
On Tue, 2005-03-08 at 16:30 -0600, Guy Rouillier wrote:
> We use a dynamic statement in a pgsql stored function to insert rows
> into a table determined at run time.  After much debugging, I've
> discovered that a null incoming argument will cause the dynamic
> statement to evaluate to null.  The error message emitted is "unable to
> execute null statement."

can't you use COALESCE() ?

gnari



В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Can't delete - Need cascading update instead
Следующее
От: Marco Colombo
Дата:
Сообщение: Re: postgresql vs mysql performance comparison