Example #1
0
 /**
  * {@inheritdoc}
  */
 public function compiled()
 {
     if (!$this->condition->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 SelectInterface) {
             if (!$table['table']->compiled()) {
                 return FALSE;
             }
         }
         if (!empty($table['condition']) && $table['condition'] instanceof ConditionInterface) {
             if (!$table['condition']->compiled()) {
                 return FALSE;
             }
         }
     }
     foreach ($this->union as $union) {
         if (!$union['query']->compiled()) {
             return FALSE;
         }
     }
     return TRUE;
 }
Example #2
0
 /**
  * Implements Drupal\Core\Database\Query\ConditionInterface::compiled().
  */
 public function compiled()
 {
     return $this->condition->compiled();
 }