Don't try to build an UPDATE statement at all if no key were set on the record sent into store(). Also throw a sensible (if scaredy-cat) exception rather than an NPE if no WHERE clause were given to an UPDATE. We probably do want to allow rampant nutty 20,000-row UPDATEs at some point, but not because of an accidental null key.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2277 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -89,6 +89,7 @@ public class Join extends QueryClause
|
||||
public void addClasses (Collection<Class<? extends PersistentRecord>> classSet)
|
||||
{
|
||||
classSet.add(_joinClass);
|
||||
_joinCondition.addClasses(classSet);
|
||||
}
|
||||
|
||||
/** Indicates the type of join to be performed. */
|
||||
|
||||
Reference in New Issue
Block a user