Changeset 3692

Show
Ignore:
Timestamp:
01/30/08 23:05:43 (17 months ago)
Author:
lsmith
Message:

- MFT

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

Legend:

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

    r2963 r3692  
    124124    public function getPortableDeclaration($field) 
    125125    { 
    126         $db_type = preg_replace('/\d/','', strtolower($field['type']) ); 
     126        $db_type = preg_replace('/[\d\(\)]/','', strtolower($field['type']) ); 
    127127        $length  = (isset($field['length']) && $field['length'] > 0) ? $field['length'] : null; 
    128128 
     
    138138                $type[0] = 'boolean'; 
    139139            break; 
     140            case 'tinyint': 
     141            case 'smallint': 
    140142            case 'int': 
    141143                $type[0] = 'integer'; 
  • branches/0.10/lib/Doctrine/Import/Mssql.php

    r3018 r3692  
    7474            } 
    7575 
     76            $val['type'] = $type; 
     77            $val['identity'] = $identity; 
    7678            $decl = $this->conn->dataDict->getPortableDeclaration($val); 
    7779 
     
    113115    public function listTables($database = null) 
    114116    { 
    115         $sql = "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name"; 
     117        $sql = "SELECT name FROM sysobjects WHERE type = 'U' AND name <> 'dtproperties' ORDER BY name"; 
    116118 
    117119        return $this->conn->fetchColumn($sql);