summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-05-19 15:42:57 -0700
committerJesse Morgan <jesse@jesterpm.net>2014-05-19 15:42:57 -0700
commit32d20be647d80ec3509bfa3d7040b0d21cd8cb83 (patch)
treea7260d4b3d646eace3b4c07c6839d14df63d98ea
parent067f05344c5ac8527ea4f97880a53ac7e89bc031 (diff)
parentff22ef4ac4dc44d3824230c760b87cbcbf8ae64a (diff)
Merge pull request #2 from Carbonado/master
Merge master into v1.3
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
index 423861d..f609483 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
@@ -754,14 +754,14 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
case NUMERIC:
case DECIMAL:
if (desiredClass == int.class) {
- if (decimalDigits == 0) {
+ if (decimalDigits <= 0) {
actualClass = int.class;
suffix = "Int";
} else {
return null;
}
} else if (desiredClass == long.class) {
- if (decimalDigits == 0) {
+ if (decimalDigits <= 0) {
actualClass = long.class;
suffix = "Long";
} else {
@@ -774,14 +774,14 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
actualClass = BigDecimal.class;
suffix = "BigDecimal";
} else if (desiredClass == short.class) {
- if (decimalDigits == 0) {
+ if (decimalDigits <= 0) {
actualClass = short.class;
suffix = "Short";
} else {
return null;
}
} else if (desiredClass == byte.class) {
- if (decimalDigits == 0) {
+ if (decimalDigits <= 0) {
actualClass = byte.class;
suffix = "Byte";
} else {