protected function _validate_update($table)
{
if (count($this->qb_set) === 0) {
return $this->db_debug ? $this->display_error('db_must_use_set') : FALSE;
}
if ($table !== '') {
$this->qb_from = array($this->protect_identifiers($table, TRUE, NULL, FALSE));
} elseif (!isset($this->qb_from[0])) {
return $this->db_debug ? $this->display_error('db_must_set_table') : FALSE;
}
return TRUE;
}