1
0
mirror of synced 2025-02-20 22: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,12 +122,17 @@ class Doctrine_Import_Oracle extends Doctrine_Import
$result = $this->conn->fetchAssoc($sql);
foreach($result as $val) {
$decl = $this->conn->dataDict->getPortableDeclaration($val);
$descr[$val['column_name']] = array(
'name' => $val['column_name'],
'notnull' => (bool) ($val['nullable'] === 'N'), // nullable is N when mandatory
'type' => $val['data_type'],
'default' => $val['data_default'],
'length' => $val['data_length']
'name' => $val['column_name'],
'notnull' => (bool) ($val['nullable'] === 'N'), // nullable is N when mandatory
'type' => $val['data_type'],
'ptype' => $decl['type'],
'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'],
'default' => $val['data_default'],
'length' => $val['data_length']
);
}
return $result;

View File

@ -149,7 +149,7 @@ class Doctrine_Import_Sqlite extends Doctrine_Import
*/
public function listTableIndexes($table)
{
$sql = 'PRAGMA index_list(' . $table . ')';
$sql = 'PRAGMA index_list(' . $table . ')';
return $this->conn->fetchColumn($sql);
}
/**