refactorings
This commit is contained in:
parent
4e99dcb51f
commit
539853d5e4
@ -619,7 +619,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
|
||||
*/
|
||||
public function quote($input, $type = null)
|
||||
{
|
||||
return $this->formatter->quote($input, $type);
|
||||
return $this->dbh->quote($input, $type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,5 +47,10 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function quote($input)
|
||||
{
|
||||
return $input;
|
||||
}
|
||||
}
|
@ -168,7 +168,7 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
|
||||
case 'gzip':
|
||||
case 'blob':
|
||||
case 'clob':
|
||||
return $this->conn->getDbh()->quote($input);
|
||||
return $this->conn->quote($input);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user