mirror of https://github.com/apache/openjpa.git
Port fix from main line.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.1.x@711287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
639463187f
commit
4ff176e797
|
@ -185,10 +185,10 @@ class GetMapValue
|
|||
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 @@ class GetMapValue
|
|||
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]);
|
||||
|
|
Loading…
Reference in New Issue