From 3502fd9299c14d592030dbc5ed356cde0fa8be46 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 12 Jul 2007 22:31:16 +0000 Subject: [PATCH] identifier quoting fix --- lib/Doctrine/Connection.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index b46b7c992..8f98800c3 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -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); } /**