summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-09 04:46:57 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-09 04:46:57 +0000
commit24fac5dcd5925fa547527eed721bdb78b4640158 (patch)
treedc991c34f172c03673d33bdc911002f353b1f5d1 /src/main/java
parent106869635aa322d70d40024e2b8a313968dfab6d (diff)
More lenient with floating point conversion.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java14
1 files changed, 3 insertions, 11 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 0b1492c..245afd6 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
@@ -646,21 +646,13 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
}
break;
+ case REAL:
case FLOAT:
+ case DOUBLE:
if (desiredClass == float.class) {
actualClass = float.class;
suffix = "Float";
- } else if (desiredClass == String.class) {
- actualClass = String.class;
- suffix = "String";
- } else {
- return null;
- }
- break;
-
- case DOUBLE:
- case REAL:
- if (desiredClass == double.class) {
+ } else if (desiredClass == double.class) {
actualClass = double.class;
suffix = "Double";
} else if (desiredClass == String.class) {