1
0
mirror of synced 2025-01-18 22:41:43 +03:00

refactorings

This commit is contained in:
romanb 2008-05-24 19:11:33 +00:00
parent 4e99dcb51f
commit 539853d5e4
3 changed files with 7 additions and 2 deletions

View File

@ -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);
}
/**

View File

@ -47,5 +47,10 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common
public function __construct()
{
}
public function quote($input)
{
return $input;
}
}

View File

@ -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);
}
}