Show
Ignore:
Timestamp:
01/30/08 18:05:43 (2 years ago)
Author:
lsmith
Message:

- MFT

Files:
1 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';