refactorings
This commit is contained in:
parent
4e99dcb51f
commit
539853d5e4
3 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,5 +47,10 @@ class Doctrine_Connection_Mock extends Doctrine_Connection_Common
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function quote($input)
|
||||||
|
{
|
||||||
|
return $input;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue