openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r711287 - /openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java
Date Tue, 04 Nov 2008 16:11:14 GMT
Author: awhite
Date: Tue Nov  4 08:11:14 2008
New Revision: 711287

URL: http://svn.apache.org/viewvc?rev=711287&view=rev
Log:
Port fix from main line.


Modified:
    openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java

Modified: openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java?rev=711287&r1=711286&r2=711287&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java
(original)
+++ openjpa/branches/1.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/GetMapValue.java
Tue Nov  4 08:11:14 2008
@@ -185,10 +185,10 @@
         for (int i = 0; i < values.length; i++) {
             if (i > 0)
                 sql.append(", ");
-            sql.append(values[i].getFullName());
+            sql.append(values[i].getTable()).append(".").append(values[i]);
         }
-        sql.append(" FROM ").append(values[0].getTable().getFullName()).
-            append(" WHERE ");
+        sql.append(" FROM ").append(values[0].getTable());
+        sql.append(" WHERE ");
 
         // add in the joins
         ContainerFieldStrategy.appendUnaliasedJoin(sql, sel, null, 
@@ -200,7 +200,7 @@
         Object[] vals = (cols.length == 1) ? null : (Object[]) key;
 
         for (int i = 0; i < cols.length; i++) {
-            sql.append(cols[i].getFullName());
+            sql.append(cols[i].getTable()).append(".").append(cols[i]);
             if (vals == null)
                 sql.append((key == null) ? " IS " : " = ").
                     appendValue(key, cols[i]);



Mime
View raw message