1
0
mirror of synced 2025-02-22 23:23:14 +03:00
This commit is contained in:
zYne 2007-02-10 11:02:29 +00:00
parent c25911712b
commit 8703d6e913
2 changed files with 11 additions and 6 deletions

View File

@ -122,10 +122,15 @@ class Doctrine_Import_Oracle extends Doctrine_Import
$result = $this->conn->fetchAssoc($sql); $result = $this->conn->fetchAssoc($sql);
foreach($result as $val) { foreach($result as $val) {
$decl = $this->conn->dataDict->getPortableDeclaration($val);
$descr[$val['column_name']] = array( $descr[$val['column_name']] = array(
'name' => $val['column_name'], 'name' => $val['column_name'],
'notnull' => (bool) ($val['nullable'] === 'N'), // nullable is N when mandatory 'notnull' => (bool) ($val['nullable'] === 'N'), // nullable is N when mandatory
'type' => $val['data_type'], 'type' => $val['data_type'],
'ptype' => $decl['type'],
'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'],
'default' => $val['data_default'], 'default' => $val['data_default'],
'length' => $val['data_length'] 'length' => $val['data_length']
); );