Re: EXECUTE with a prepared plan and NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: EXECUTE with a prepared plan and NULL
Дата
Msg-id 888.1231110285@sss.pgh.pa.us
обсуждение исходный текст
Ответ на EXECUTE with a prepared plan and NULL  ("sergey kapustin" <kapustin.sergey@gmail.com>)
Список pgsql-sql
"sergey kapustin" <kapustin.sergey@gmail.com> writes:
> The thing is, that if i one of the parameters is NULL, then string s becomes
> NULL also ( because NULL||"any string" = NULL) and as a result i get this
> error -
> ERROR:  cannot EXECUTE a null querystring

quote_nullable() might help.
        regards, tom lane


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: How to excute dynamically a generated SQL command?
Следующее
От: Chris Browne
Дата:
Сообщение: Re: Any utility to convert MySQL to PGSQL?