Invalid comparison

Item Value
SQLCODE -710
Constant SQLE_INVALID_COMPARISON
SQLSTATE 52W25
Sybase error code 13749
ODBC 2 State 37000
ODBC 3 State 42000

Probable cause 

An attempt was made to compare two arguments that do not support comparison. For example, it is not valid to compare a Java object with another Java object, unless the class of the object supports a valid compareTo() method.