aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2014-11-22 15:01:30 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2014-11-22 15:01:30 +0000
commit45d9cf846be85fb94db11e17c02d8e0c085d649c (patch)
treed878c645a8c4d06c803e2ad3d0758d7bde2f0c97
parentd50370e04a588f8d6fe02ba2ec871f356c430297 (diff)
downloadjackcess-45d9cf846be85fb94db11e17c02d8e0c085d649c.tar.gz
jackcess-45d9cf846be85fb94db11e17c02d8e0c085d649c.zip
make money columns report accurate scale/precision, fixes #112
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@894 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--src/changes/changes.xml3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/DataType.java3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 22ab6ae..bd5e3eb 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -9,6 +9,9 @@
Unicode compression support was not correct for all possibly
compressed characters.
</action>
+ <action dev="jahlborn" type="fix" system="SourceForge2" issue="112">
+ Currency columns will now return an accurate scale and precision.
+ </action>
</release>
<release version="2.0.6" date="2014-10-04">
<action dev="jahlborn" type="fix" system="SourceForge2" issue="109">
diff --git a/src/main/java/com/healthmarketscience/jackcess/DataType.java b/src/main/java/com/healthmarketscience/jackcess/DataType.java
index 3abe78a..e115cdf 100644
--- a/src/main/java/com/healthmarketscience/jackcess/DataType.java
+++ b/src/main/java/com/healthmarketscience/jackcess/DataType.java
@@ -80,7 +80,8 @@ public enum DataType {
* 0, any Object converted to a String and parsed as BigDecimal, or {@code
* null}. Equivalent to SQL {@link Types#DECIMAL}.
*/
- MONEY((byte) 0x05, Types.DECIMAL, 8),
+ MONEY((byte) 0x05, Types.DECIMAL, 8, false, false, 0, 0, 0, false, 4, 4, 4,
+ 19, 19, 19, 1),
/**
* Corresponds to a java {@link Float}. Accepts any {@link Number} (using
* {@link Number#floatValue}), Boolean as 1 or 0, any Object converted to a