mirror of https://github.com/apache/openjpa.git
Throw an exception if the user tries to perform an bulk update with a parameter other than a primitive.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6e079939b5
commit
2c5377f687
|
@ -1070,7 +1070,7 @@ public class QueryImpl
|
|||
} else if (value instanceof Constant) {
|
||||
val = ((Constant) value).getValue(params);
|
||||
} else {
|
||||
val = null;
|
||||
throw new UserException(_loc.get("only-update-primitives"));
|
||||
}
|
||||
|
||||
OpenJPAStateManager sm = _broker.getStateManager(ob);
|
||||
|
|
Loading…
Reference in New Issue