1
0
Fork 0
mirror of synced 2025-03-30 03:30:13 +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

@ -48,4 +48,9 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common
{
}
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);
}
}