Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function quoteTrustedValue($value)
 {
     $resource = $this->resource;
     if ($resource instanceof DriverInterface) {
         $resource = $resource->getConnection()->getResource();
     }
     if ($resource instanceof \PDO) {
         return $resource->quote($value);
     }
     return parent::quoteTrustedValue($value);
 }
 /**
  * {@inheritDoc}
  */
 public function quoteTrustedValue($value)
 {
     if ($this->resource instanceof DriverInterface) {
         $this->resource = $this->resource->getConnection()->getResource();
     }
     if (is_resource($this->resource)) {
         return '\'' . pg_escape_string($this->resource, $value) . '\'';
     }
     if ($this->resource instanceof \PDO) {
         return $this->resource->quote($value);
     }
     return 'E' . parent::quoteTrustedValue($value);
 }