From 24fac5dcd5925fa547527eed721bdb78b4640158 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 9 May 2008 04:46:57 +0000 Subject: More lenient with floating point conversion. --- .../carbonado/repo/jdbc/JDBCStorableIntrospector.java | 14 +++----------- 1 file 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) { -- cgit v1.2.3