/**
  * Tests converting to sql
  *
  * @return void
  */
 public function testSQL()
 {
     $expression = new IdentifierExpression('foo');
     $this->assertEquals('foo', $expression->sql(new ValueBinder()));
 }
Пример #2
0
 /**
  * Quotes identifiers in "order by" expression objects
  *
  * @param \Cake\Database\Expression\IdentifierExpression $expression
  * @return void
  */
 protected function _quoteIndetifierExpression(IdentifierExpression $expression)
 {
     $expression->setIdentifier($this->_driver->quoteIdentifier($expression->getIdentifier()));
 }