Changeset 4049

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

fixed #882

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

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Query/Abstract.php

    r3975 r4049  
    835835    public function generateSqlTableAlias($componentAlias, $tableName) 
    836836    { 
    837         $char   = strtolower(substr($tableName, 0, 1)); 
    838  
    839         $alias  = $char; 
     837        $char = strtolower(substr($tableName, 0, 1)); 
     838 
     839        $alias = $char; 
    840840 
    841841        if ( ! isset($this->_tableAliasSeeds[$alias])) { 
  • branches/0.10/lib/Doctrine/Sequence/Mssql.php

    r3884 r4049  
    139139        } 
    140140 
    141         return $this->conn->fetchOne($query); 
     141        return (string) floor((float) $this->conn->fetchOne($query)); 
    142142    } 
    143143