Changeset 3692
- Timestamp:
- 01/30/08 23:05:43 (17 months ago)
- Location:
- branches/0.10/lib/Doctrine
- Files:
-
- 2 modified
-
DataDict/Mssql.php (modified) (2 diffs)
-
Import/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'; -
branches/0.10/lib/Doctrine/Import/Mssql.php
r3018 r3692 74 74 } 75 75 76 $val['type'] = $type; 77 $val['identity'] = $identity; 76 78 $decl = $this->conn->dataDict->getPortableDeclaration($val); 77 79 … … 113 115 public function listTables($database = null) 114 116 { 115 $sql = "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name";117 $sql = "SELECT name FROM sysobjects WHERE type = 'U' AND name <> 'dtproperties' ORDER BY name"; 116 118 117 119 return $this->conn->fetchColumn($sql);