Milliseconds are added to TimeStamp
Posted: Sat 18 Apr 2015 00:11
Hello,
Test done with Firebird 2.5 under DXE7
Devart DBXdriver 4.6.9 (same problem with previous versions)
The problem : DBXDriver add milliseconds to timeStamp value
To reproduce set now() to a timeStamp : myDataSet.FieldByName('MYTIMESTAMP').AsDateTime := now; and then applyUpdates. => The timeStamp has millisecond in the dataBase
Function now() doesn't returns millisecond
I don't see paramaters to avoid this, so I suppose that it's a bug
Embarcadero DBXDriver doesn't add milliseconds when I set now to a timeStamp and doesn't returns millisonds in dataSet (but I can't say if return milliseconds is a bug).
I my project I don't want to display milliseconds in the DBGrids and so it's impoosible to make a filter on timestamp fields.
That's why I don't want to have milliseconds in timeStamp fields.
Thanks
Test done with Firebird 2.5 under DXE7
Devart DBXdriver 4.6.9 (same problem with previous versions)
The problem : DBXDriver add milliseconds to timeStamp value
To reproduce set now() to a timeStamp : myDataSet.FieldByName('MYTIMESTAMP').AsDateTime := now; and then applyUpdates. => The timeStamp has millisecond in the dataBase
Function now() doesn't returns millisecond
I don't see paramaters to avoid this, so I suppose that it's a bug
Embarcadero DBXDriver doesn't add milliseconds when I set now to a timeStamp and doesn't returns millisonds in dataSet (but I can't say if return milliseconds is a bug).
I my project I don't want to display milliseconds in the DBGrids and so it's impoosible to make a filter on timestamp fields.
That's why I don't want to have milliseconds in timeStamp fields.
Thanks