Show
Ignore:
Timestamp:
10/21/08 19:07:34 (17 months ago)
Author:
jwage
Message:

[1.0, 1.1] fixes #1006

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/lib/Doctrine/Import/Schema.php

    r5118 r5123  
    378378                    if (isset($e[0]) && isset($e[1])) { 
    379379                        $colDesc['type'] = $e[0]; 
    380                         $colDesc['length'] = substr($e[1], 0, strlen($e[1]) - 1); 
     380                        $value = substr($e[1], 0, strlen($e[1]) - 1); 
     381                        $e = explode(',', $value); 
     382                        $colDesc['length'] = $e[0]; 
     383                        if (isset($e[1]) && $e[1]) { 
     384                            $colDesc['scale'] = $e[1]; 
     385                        } 
    381386                    } else { 
    382387                        $colDesc['type'] = isset($field['type']) ? (string) $field['type']:null;