/** * Use a sub-query to for the inserted values. * * @param object $query Database_Query of SELECT type * @return $this */ public function select(Database_Query $query) { if ($query->type() !== Database::SELECT) { die('Only SELECT queries can be combined with INSERT queries'); } $this->_values = $query; return $this; }
public function select(Database_Query $query) { if ($query->type() !== Database::SELECT) { throw new JsonApiApplication_Exception('Only SELECT queries can be combined with INSERT queries'); } $this->_values = $query; return $this; }
/** * Use a sub-query to for the inserted values. * * @param object Database_Query of SELECT type * @return $this */ public function select(Database_Query $query) { if ($query->type() !== Database::SELECT) { throw new Kohana_Exception('Only SELECT queries can be combined with REPLACE queries'); } $this->_values = $query; return $this; }