Error in assignment

Item Value
SQLCODE -641
Constant SQLE_ERROR_IN_ASSIGNMENT
SQLSTATE 22005
Sybase error code 8205
ODBC 2 State 22005
ODBC 3 State 22018

Probable cause 

In a GET DESCRIPTOR statement, the data type of the host variable must correspond to the data type of the descriptor item.