Пример #1
0
 protected function _renderToken(Token $token)
 {
     $str = '';
     switch ($token->getValue()) {
         default:
             $str = $token->getValue();
     }
     if ($alias = $token->getAlias()) {
         $str .= "AS {$this->_renderAlias($alias)}";
     }
     return $str;
 }
 protected function _renderToken(Token $token)
 {
     switch ($token->getValue()) {
         case Token::CURRENT_TIMESTAMP:
             return 'GETDATE()';
         default:
             return parent::_renderToken($token);
     }
 }