예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function quote($value)
 {
     try {
         if (ConnectionDecoratorChain::isDecorate()) {
             return (new ConnectionDecoratorChain($this, $this->decorators))->quote($value);
         }
         return $this->pdo->quote($value);
     } catch (\Exception $e) {
         throw $this->convertException($e);
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function applyPrefix($value)
 {
     if (ConnectionDecoratorChain::isDecorate()) {
         return (new ConnectionDecoratorChain($this, $this->decorators))->applyPrefix($value);
     }
     return str_replace(DB::SCHEMA_OBJECT_PREFIX, '', $value);
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function quoteIdentifier($identifier)
 {
     if (ConnectionDecoratorChain::isDecorate()) {
         return (new ConnectionDecoratorChain($this, $this->decorators))->quoteIdentifier($identifier);
     }
     try {
         return $this->conn->quoteIdentifier($identifier);
     } catch (\Exception $e) {
         throw $this->convertException($e);
     }
 }