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:
zell
2008-03-10 22:28:11 +00:00
parent 195c16e06a
commit 2da510c744
3 changed files with 12 additions and 4 deletions
@@ -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. */