Example #1
0
 public function testCompile()
 {
     $query = new Query('This');
     $this->assertEquals('This', $query->getQuery());
 }
Example #2
0
 /**
  * Compile a subquery
  *
  * @param   Collector  $collection  query collector
  * @return  string     subquery sql
  */
 public function compileSubQuery(Query $query)
 {
     return '(' . $query->getQuery($this->connection) . ')';
 }