Menu

#112 Column.getScale() of Currency field returns zero

2.0.7
closed
None
1
2014-11-22
2014-11-22
No

Column.getScale() of DataType.MONEY field returns zero.

It looks like Access internally uses a scale of 4 but doesn't report it. I realise it is something that users of the library can hard code instead of relying on the value of getScale() but it might be an idea for you to hard code it in the library (and also getPrecision() if you can work out what its value is) so that it is consistent with DataType.NUMERIC.

Thanks for the great library!

Discussion

  • James Ahlborn

    James Ahlborn - 2014-11-22
    • status: open --> closed
    • assigned_to: James Ahlborn
    • Group: Unassigned --> 2.0.7
     
  • James Ahlborn

    James Ahlborn - 2014-11-22

    money columns should now report 4 for scale and 19 for precision. changes are in trunk and will be in the 2.0.7 release.

     
  • Martin Jericho

    Martin Jericho - 2014-11-22

    Thanks James.

     

Log in to post a comment.