Cannot return NULL result as requested data type

Error constant SQLE_VALUE_IS_NULL
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –1050
SQLSTATE 22030
Sybase error code 13461
Probable cause

You tried to retrieve a value from the database that was NULL and assign it to a variable that cannot be NULL.