#646 DB2 timestamps still don't work when milliseconds are zero

Snapshot
closed-fixed
5
2015-01-08
2008-07-15
No

Having a timestamp of '2008-07-15-10.56.23.000456' in the table,
results in a generated ts of {ts '2008-07-15 10:56:23.000'} which should be {ts '2008-07-15 10:56:23.000456'}.
I've reviewed the code and found an error in the getNanos() method.
Attached is a test driver and a corrected version of this method.
I'd be glad, if you could provide the fix in one of the next snapshots.

Cheers, Daniel

Discussion

  • Daniel Stränger

    microseconds part of the timestamp

     
  • Rob Manning

    Rob Manning - 2008-07-20

    Logged In: YES
    user_id=1287991
    Originator: NO

    Fixed in CVS - available in next snapshot.

    Rob

     
  • Rob Manning

    Rob Manning - 2008-07-24
    • assigned_to: joco01 --> manningr
    • status: open --> closed-fixed
     

Log in to post a comment.