summaryrefslogtreecommitdiff
path: root/includes/database/select.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database/select.inc')
-rw-r--r--includes/database/select.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc
index bef03f756..633965dcc 100644
--- a/includes/database/select.inc
+++ b/includes/database/select.inc
@@ -579,6 +579,16 @@ class SelectQueryExtender implements SelectQueryInterface {
return $count;
}
+ function isNull($field) {
+ $this->query->isNull($field);
+ return $this;
+ }
+
+ function isNotNull($field) {
+ $this->query->isNotNull($field);
+ return $this;
+ }
+
public function __toString() {
return (string)$this->query;
}
@@ -760,6 +770,17 @@ class SelectQuery extends Query implements SelectQueryInterface {
return $this;
}
+ public function isNull($field) {
+ $this->where->isNull($field);
+ return $this;
+ }
+
+ public function isNotNull($field) {
+ $this->where->isNotNull($field);
+ return $this;
+ }
+
+
public function compile(DatabaseConnection $connection) {
return $this->where->compile($connection);
}
@@ -801,6 +822,17 @@ class SelectQuery extends Query implements SelectQueryInterface {
return new $extender_name($this, $this->connection);
}
+ public function havingIsNull($field) {
+ $this->having->isNull($field);
+ return $this;
+ }
+
+ public function havingIsNotNull($field) {
+ $this->having->isNotNull($field);
+ return $this;
+ }
+
+
/* Alter accessors to expose the query data to alter hooks. */
public function &getFields() {