diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2014-11-22 15:01:30 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2014-11-22 15:01:30 +0000 |
commit | 45d9cf846be85fb94db11e17c02d8e0c085d649c (patch) | |
tree | d878c645a8c4d06c803e2ad3d0758d7bde2f0c97 /src/main/java | |
parent | d50370e04a588f8d6fe02ba2ec871f356c430297 (diff) | |
download | jackcess-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
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/DataType.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 |