Permalink
Browse files

Merge pull request #38 from klaussilveira/patch-1

Fixing typo with PostgreSQL import
  • Loading branch information...
2 parents c6bbf67 + 903c161 commit dcec9a6e0b6d6a42fce6fa495d65ad3d22178307 @guilhermeblanco guilhermeblanco committed Aug 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/Import/Pgsql.php
View
2 lib/Doctrine/Import/Pgsql.php
@@ -191,7 +191,7 @@ public function listTableColumns($table)
);
// If postgres enum type
- if ($val['typtype'] == 'e'){
+ if ($val['type'] == 'e'){
$description['default'] = isset($decl['default']) ? $decl['default'] : null;
$t_result = $this->conn->fetchAssoc(sprintf('select enum_range(null::%s) as range ', $decl['enum_name']));
if (isset($t_result[0])){

0 comments on commit dcec9a6

Please sign in to comment.