Changeset 3692 for branches/0.10/lib/Doctrine/DataDict/Mssql.php
- Timestamp:
- 01/30/08 18:05:43 (2 years ago)
- Files:
-
- 1 modified
-
branches/0.10/lib/Doctrine/DataDict/Mssql.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/DataDict/Mssql.php
r2963 r3692 124 124 public function getPortableDeclaration($field) 125 125 { 126 $db_type = preg_replace('/ \d/','', strtolower($field['type']) );126 $db_type = preg_replace('/[\d\(\)]/','', strtolower($field['type']) ); 127 127 $length = (isset($field['length']) && $field['length'] > 0) ? $field['length'] : null; 128 128 … … 138 138 $type[0] = 'boolean'; 139 139 break; 140 case 'tinyint': 141 case 'smallint': 140 142 case 'int': 141 143 $type[0] = 'integer';