Error in assignment

Error constant SQLE_ERROR_IN_ASSIGNMENT
ODBC 2 State 22005
ODBC 3 State 22018
Severity 20
SQLCODE –641
SQLSTATE 22005
Sybase error code 8205
Probable cause

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