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