Changeset 4050

Show
Ignore:
Timestamp:
03/19/08 16:05:34 (16 months ago)
Author:
romanb
Message:

Fixed #883

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Connection/Mssql.php

    r4037 r4050  
    8585            return $identifier; 
    8686        } 
     87         
     88        if (strpos($identifier, '.') !== false) {  
     89            $parts = explode('.', $identifier);  
     90            $quotedParts = array();  
     91            foreach ($parts as $p) {  
     92                $quotedParts[] = $this->quoteIdentifier($p);  
     93            } 
     94             
     95            return implode('.', $quotedParts);  
     96        } 
     97         
    8798        return '[' . str_replace(']', ']]', $identifier) . ']'; 
    8899    }