Changeset 3927

Show
Ignore:
Timestamp:
03/04/08 23:10:53 (16 months ago)
Author:
jwage
Message:

fixes #711 - Added mysql bit column type support.

Files:
1 modified

Legend:

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

    r3884 r3927  
    3737                          'ASC', 'ASENSITIVE', 'BEFORE', 
    3838                          'BETWEEN', 'BIGINT', 'BINARY', 
    39                           'BLOB', 'BOTH', 'BY', 
     39                          'BLOB', 'BOTH', 'BY', 'BIT', 
    4040                          'CALL', 'CASCADE', 'CASE', 
    4141                          'CHANGE', 'CHAR', 'CHARACTER', 
     
    226226                $scale = !empty($field['scale']) ? $field['scale'] : $this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES); 
    227227                return 'DECIMAL('.$length.','.$scale.')'; 
     228            case 'bit': 
     229                return 'BIT'; 
    228230        } 
    229231        throw new Doctrine_DataDict_Exception('Unknown field type \'' . $field['type'] .  '\'.'); 
     
    377379                $type[] = 'date'; 
    378380                $length = null; 
     381            break; 
     382            case 'bit': 
     383                $type[] = 'bit'; 
    379384            break; 
    380385            default: