TIMESTAMP Precision axed
Posted: Fri 05 Jul 2013 21:32
Hi there,
I have a simple TIMESTAMP column. EF and Oracle can successfully roundtrip fractions of the seconds. However, if I use my TIMESTAMP column in queries, generated SQL looks dead wrong.
Timestamp columns are filled with SysTimeStamp Oracle function by default, so yes, these values are real.
Here is an example:
SELECT ....
FROM TINDEXES "Extent1"
WHERE "Extent1".TS > TO_TIMESTAMP('2013-06-29 20:14:58.7230000', 'yyyy-mm-dd hh24:mi:ss.ff')
ORDER BY "Extent1".ID ASC
Obviously fractions of seconds get axed, so business logic fails.
Where can one configure the precision of this 'yyyy-mm-dd hh24:mi:ss.ff' format?
EF4/.NET 4/Oracle 11G R2
Thank you in advance,
Lex
I have a simple TIMESTAMP column. EF and Oracle can successfully roundtrip fractions of the seconds. However, if I use my TIMESTAMP column in queries, generated SQL looks dead wrong.
Timestamp columns are filled with SysTimeStamp Oracle function by default, so yes, these values are real.
Here is an example:
SELECT ....
FROM TINDEXES "Extent1"
WHERE "Extent1".TS > TO_TIMESTAMP('2013-06-29 20:14:58.7230000', 'yyyy-mm-dd hh24:mi:ss.ff')
ORDER BY "Extent1".ID ASC
Obviously fractions of seconds get axed, so business logic fails.
Where can one configure the precision of this 'yyyy-mm-dd hh24:mi:ss.ff' format?
EF4/.NET 4/Oracle 11G R2
Thank you in advance,
Lex