1
0
mirror of synced 2024-12-14 07:06:04 +03:00

identifier quoting fix

This commit is contained in:
zYne 2007-07-12 22:31:16 +00:00
parent af7d3addd6
commit 3502fd9299

View File

@ -539,6 +539,13 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
*/
public function quoteIdentifier($str, $checkOption = true)
{
// quick fix for the identifiers that contain a dot
if (strpos($str, '.')) {
$e = explode('.', $str);
return $this->formatter->quoteIdentifier($e[0], $checkOption) . '.'
. $this->formatter->quoteIdentifier($e[1], $checkOption);
}
return $this->formatter->quoteIdentifier($str, $checkOption);
}
/**