openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r449322 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Sat, 23 Sep 2006 22:48:14 GMT
Author: pcl
Date: Sat Sep 23 15:48:14 2006
New Revision: 449322

URL: http://svn.apache.org/viewvc?view=rev&rev=449322
Log:
wrap types before deciding whether or not a cast is needed.

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

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?view=diff&rev=449322&r1=449321&r2=449322
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Sat Sep 23 15:48:14 2006
@@ -2303,8 +2303,8 @@
         FilterValue rhs) {
         boolean castlhs = false;
         boolean castrhs = false;
-        Class lc = lhs.getType();
-        Class rc = rhs.getType();
+        Class lc = Filters.wrap(lhs.getType());
+        Class rc = Filters.wrap(rhs.getType());
         int type = 0;
         if (requiresCastForMathFunctions && (lc != rc
             || (lhs.isConstant() && rhs.isConstant()))) {
@@ -2355,8 +2355,8 @@
         FilterValue rhs) {
         boolean castlhs = false;
         boolean castrhs = false;
-        Class lc = lhs.getType();
-        Class rc = rhs.getType();
+        Class lc = Filters.wrap(lhs.getType());
+        Class rc = Filters.wrap(rhs.getType());
         int type = 0;
         if (requiresCastForComparisons && (lc != rc
             || (lhs.isConstant() && rhs.isConstant()))) {



Mime
View raw message