Changeset 5317

Show
Ignore:
Timestamp:
12/19/08 02:39:49 (7 months ago)
Author:
jwage
Message:

[1.0, 1.1] Fixes issue where decimal always fails length validation when null is specified for length (closes #4998)

Location:
branches
Files:
2 added
2 modified

Legend:

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

    r5296 r5317  
    10251025        if ($length == null) { 
    10261026            switch ($type) { 
     1027                case 'decimal': 
     1028                    $length = 18; 
     1029                break; 
    10271030                case 'string': 
    10281031                case 'clob': 
  • branches/1.1/lib/Doctrine/Table.php

    r5296 r5317  
    10791079                case 'integer': 
    10801080                    $length = 8; 
     1081                break; 
     1082                case 'decimal': 
     1083                    $length = 18; 
    10811084                break; 
    10821085                case 'string':