Re: select error with null string -- error code -209

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select error with null string -- error code -209
Дата
Msg-id 20856.989245431@sss.pgh.pa.us
обсуждение исходный текст
Ответ на select error with null string -- error code -209  (HYip <hualinyip@earthlink.net>)
Список pgsql-general
HYip <hualinyip@earthlink.net> writes:
> The code has no problem when both accountname, and account are not
> null.  It gives me an errror code of -209 when the account is null.
> Anyone has any idea of fixing it.

(1) Try printing sqlca.sqlerrm.sqlerrmc, not sqlca.sqlcode, if you
don't want to look up error codes.

(2) You need an indicator variable if you want to fetch NULLs.
Else how will you know that the value is NULL?

            regards, tom lane

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

Предыдущее
От: Fran Fabrizio
Дата:
Сообщение: select off of a view going slowly
Следующее
От: Fran Fabrizio
Дата:
Сообщение: Re: subtratcing dates