mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-19 20:04:24 +02:00
DbQuery: Add method union()
This commit is contained in:
parent
9587c363f6
commit
28cd9681c8
@ -577,4 +577,18 @@ class DbQuery extends SimpleQuery
|
||||
$this->select->joinNatural($name, $cols, $schema);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a UNION clause to the query
|
||||
*
|
||||
* @param array $select Select clauses for the union
|
||||
* @param string $type Type of UNION to use
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function union($select = array(), $type = Zend_Db_Select::SQL_UNION)
|
||||
{
|
||||
$this->select->union($select, $type);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user