openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1227406 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Wed, 04 Jan 2012 23:57:35 GMT
Author: allee8285
Date: Wed Jan  4 23:57:34 2012
New Revision: 1227406

URL: http://svn.apache.org/viewvc?rev=1227406&view=rev
Log:
OPENJPA-2104 Get the proper/indirect value from BindParameter.

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

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1227406&r1=1227405&r2=1227406&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Wed Jan  4 23:57:34 2012
@@ -1399,6 +1399,9 @@ public class DBDictionary
         } else if (val instanceof Calendard) {
             cald = (Calendard) val;
             val = cald.value;
+        } else if (val instanceof BindParameter) {
+        	BindParameter bParm = (BindParameter) val;
+        	val = bParm.getValue();
         }
 
         if (val == null)



Mime
View raw message