OPENJPA-596 ClassCastException during in-memory update with Informix IDS 10.0

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2008-05-21 03:17:04 +00:00
parent 3a5e61238d
commit b3f87ba1ec
1 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import org.apache.openjpa.kernel.exps.AggregateListener;
import org.apache.openjpa.kernel.exps.FilterListener;
import org.apache.openjpa.kernel.exps.Constant;
import org.apache.openjpa.kernel.exps.Literal;
import org.apache.openjpa.kernel.exps.Path;
import org.apache.openjpa.kernel.exps.Val;
import org.apache.openjpa.lib.log.Log;
import org.apache.openjpa.lib.rop.EagerResultList;
@ -1066,7 +1067,8 @@ public class QueryImpl
for (Iterator it = getUpdates().entrySet().iterator();
it.hasNext();) {
Map.Entry e = (Map.Entry) it.next();
FieldMetaData fmd = (FieldMetaData) e.getKey();
Path path = (Path) e.getKey();
FieldMetaData fmd = (FieldMetaData) path.last();
Object val;
Object value = e.getValue();