Example #1
0
 /**
  * {@inheritdoc}
  */
 public function accept(CompilerInterface $compiler, Connection $connection = null)
 {
     if ($connection !== null) {
         $compiler->appendSql($connection->escapeLiteral($this->literal));
     } else {
         $compiler->appendSql($this->literal);
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function accept(CompilerInterface $compiler, Connection $connection = null)
 {
     if ($connection !== null) {
         $compiler->appendSql($connection->escapeIdentifier($this->identifier));
     } else {
         $compiler->appendSql($this->identifier);
     }
 }