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:
A. Abram White 2008-11-04 16:11:14 +00:00
parent 639463187f
commit 4ff176e797
1 changed files with 4 additions and 4 deletions

View File

@ -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]);