1 select.inc public SelectQuery::compiled()

Implements QueryConditionInterface::compiled().

Overrides QueryConditionInterface::compiled

File

core/includes/database/select.inc, line 1174

Class

SelectQuery
Query builder for SELECT statements.

Code

public function compiled() {
  if (!$this->where->compiled() || !$this->having->compiled()) {
    return FALSE;
  }

  foreach ($this->tables as $table) {
    // If this table is a subquery, check its status recursively.
    if ($table['table'] instanceof SelectQueryInterface) {
      if (!$table['table']->compiled()) {
        return FALSE;
      }
    }
  }

  foreach ($this->union as $union) {
    if (!$union['query']->compiled()) {
      return FALSE;
    }
  }

  return TRUE;
}