openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r650217 - /openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java
Date Mon, 21 Apr 2008 18:32:17 GMT
Author: pcl
Date: Mon Apr 21 11:32:09 2008
New Revision: 650217

URL: http://svn.apache.org/viewvc?rev=650217&view=rev
Log:
No JIRA issue. Resolved an issue manifested in internal test suites with selection of CLOB
field types in some projection select cases.

Modified:
    openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java

Modified: openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java?rev=650217&r1=650216&r2=650217&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java
(original)
+++ openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/HandlerFieldStrategy.java
Mon Apr 21 11:32:09 2008
@@ -157,7 +157,8 @@
 
         if (sm != null && sm.getIntermediate(field.getIndex()) != null)
             return -1;
-        if (sel.isDistinct() && _lob && !field.isPrimaryKey())
+        if (_lob && !field.isPrimaryKey() && (sel.isDistinct() ||
+                eagerMode == JDBCFetchConfiguration.EAGER_NONE))
             return -1;
         sel.select(_cols, field.join(sel));
         return 1;



Mime
View raw message