openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r986725 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java
Date Wed, 18 Aug 2010 15:08:25 GMT
Author: faywang
Date: Wed Aug 18 15:08:25 2010
New Revision: 986725

URL: http://svn.apache.org/viewvc?rev=986725&view=rev
Log:
OPENJPA-735: OpenJPA support for SolidDB

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java?rev=986725&r1=986724&r2=986725&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java
Wed Aug 18 15:08:25 2010
@@ -314,7 +314,7 @@ public class SolidDBDictionary
             break;
         case JavaTypes.FLOAT:
         case JavaTypes.FLOAT_OBJ:
-            setDouble(stmnt, idx, val.floatValue(), col);
+            setFloat(stmnt, idx, val.floatValue(), col);
             break;
         case JavaTypes.LONG:
         case JavaTypes.LONG_OBJ:
@@ -333,11 +333,11 @@ public class SolidDBDictionary
         switch (type) {
         case JavaTypes.DOUBLE:
         case JavaTypes.DOUBLE_OBJ:
-            setDouble(stmnt, idx, val, col);
+            super.setDouble(stmnt, idx, val, col);
             break;
         case JavaTypes.FLOAT:
         case JavaTypes.FLOAT_OBJ:
-            setDouble(stmnt, idx, new Double(val).floatValue(), col);
+            setFloat(stmnt, idx, new Double(val).floatValue(), col);
             break;
         case JavaTypes.LONG:
         case JavaTypes.LONG_OBJ:



Mime
View raw message