Re: select error with null string -- error code -209 - Mailing list pgsql-general

From Tom Lane
Subject Re: select error with null string -- error code -209
Date
Msg-id 20856.989245431@sss.pgh.pa.us
Whole thread Raw
In response to select error with null string -- error code -209  (HYip <hualinyip@earthlink.net>)
List 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 by date:

Previous
From: Fran Fabrizio
Date:
Subject: select off of a view going slowly
Next
From: Fran Fabrizio
Date:
Subject: Re: subtratcing dates