Beispiel #1
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  * 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;
 }