1 select.inc | public SelectQuery::compiled() |
Check whether a condition has been previously compiled.
Return value
bool: TRUE if the condition has been previously compiled.
Overrides QueryConditionInterface::compiled
File
- core/
includes/ database/ select.inc, line 1363 - Contains classes and interfaces for Select queries.
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;
}