I am using setObject
in Preparedstatement
for the query SELECT * FROM table_name where column_name = ?
. The column is of type DateTimeOffset
of SQL Server and the object is OffsetDateTime
. But it is giving me the following error:
TEIID30492 Non-comparable expression of type object cannot be used in comparison
I have tried using the same query without Teiid translator, and it is working.
Any ideas about this kind of error?