Commit 539853d5 authored by romanb's avatar romanb

refactorings

parent 4e99dcb5
...@@ -619,7 +619,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -619,7 +619,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
*/ */
public function quote($input, $type = null) public function quote($input, $type = null)
{ {
return $this->formatter->quote($input, $type); return $this->dbh->quote($input, $type);
} }
/** /**
......
...@@ -48,4 +48,9 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common ...@@ -48,4 +48,9 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common
{ {
} }
public function quote($input)
{
return $input;
}
} }
\ No newline at end of file
...@@ -168,7 +168,7 @@ class Doctrine_Formatter extends Doctrine_Connection_Module ...@@ -168,7 +168,7 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
case 'gzip': case 'gzip':
case 'blob': case 'blob':
case 'clob': case 'clob':
return $this->conn->getDbh()->quote($input); return $this->conn->quote($input);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment