]
Steven Hawkins resolved TEIID-4844.
-----------------------------------
Fix Version/s: 9.3
9.2.2
Resolution: Done
Resolved by throwing an exception if a time/timestamp literal is used in an update/delete.
This is not an optimal solution, but it will prevent unintended results.
Google translator unexpected behavior for comparison with time
--------------------------------------------------------------
Key: TEIID-4844
URL:
https://issues.jboss.org/browse/TEIID-4844
Project: Teiid
Issue Type: Bug
Affects Versions: 8.12.10.6_3
Reporter: Lucie Fabrikova
Assignee: Steven Hawkins
Fix For: 9.3, 9.2.2
Comparison operators <, <=, >, >=, =, <> work unexpectedly for
'time' datatype, foreign table has column 'timevalue time OPTIONS (NATIVE_TYPE
'TIMEOFDAY')'.
I created view with column 'TimeValue time', inserted data in format
'10:57:23'.
I run queries like 'DELETE FROM smalla WHERE TimeValue < {t
'10:57:23'}'
* <, <>, <= deletes all rows, including rows that should be left
* >, >=, = deletes no rows