Changeset 4811

Show
Ignore:
Timestamp:
08/25/08 23:37:32 (10 months ago)
Author:
jwage
Message:

Adding mssql identifier quotes

Location:
branches/1.0/lib/Doctrine
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Query.php

    r4794 r4811  
    10051005                } 
    10061006 
    1007                 $tableAlias = trim($e[3], '`"'); 
    1008                 $componentAlias = $this->getComponentAlias($tableAlias); 
     1007                $componentAlias = $this->getComponentAlias($e[3]); 
    10091008 
    10101009                $string = $this->getInheritanceCondition($componentAlias); 
  • branches/1.0/lib/Doctrine/Query/Abstract.php

    r4809 r4811  
    881881    public function getComponentAlias($sqlTableAlias) 
    882882    { 
    883         $sqlTableAlias = trim($sqlTableAlias, '`"'); 
     883        $sqlTableAlias = trim($sqlTableAlias, '[]`"'); 
    884884        if ( ! isset($this->_tableAliasMap[$sqlTableAlias])) { 
    885885            throw new Doctrine_Query_Exception('Unknown table alias ' . $sqlTableAlias);