Changeset 3927
- Timestamp:
- 03/04/08 23:10:53 (16 months ago)
- Files:
-
- 1 modified
-
branches/0.10/lib/Doctrine/DataDict/Mysql.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/DataDict/Mysql.php
r3884 r3927 37 37 'ASC', 'ASENSITIVE', 'BEFORE', 38 38 'BETWEEN', 'BIGINT', 'BINARY', 39 'BLOB', 'BOTH', 'BY', 39 'BLOB', 'BOTH', 'BY', 'BIT', 40 40 'CALL', 'CASCADE', 'CASE', 41 41 'CHANGE', 'CHAR', 'CHARACTER', … … 226 226 $scale = !empty($field['scale']) ? $field['scale'] : $this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES); 227 227 return 'DECIMAL('.$length.','.$scale.')'; 228 case 'bit': 229 return 'BIT'; 228 230 } 229 231 throw new Doctrine_DataDict_Exception('Unknown field type \'' . $field['type'] . '\'.'); … … 377 379 $type[] = 'date'; 378 380 $length = null; 381 break; 382 case 'bit': 383 $type[] = 'bit'; 379 384 break; 380 385 default: