{ // Update Failed
throw new UnexpectedReturnValueException(affected, "db.executeSQL()");
}
else if (affected == 0)
{ // Record not found
throw new RecordUpdateInvalidException(this, getRecordKey(rec));
}
else if (affected > 1)
{ // Multiple Records affected
throw new RecordUpdateFailedException(this, getRecordKey(rec));
}