- Fix stray comma in Pg on_delete/on_update => CASCADE (RT#84706)
- Fix MySQL enums with empty strings and leading/trailing quotes (RT#86091)
- Fix "table" parameter in col_accessor_map callback (RT#84050)
+ - Fix ordering issues in Pg loader
0.07035 2013-02-26
- Release 0.07034_01 with a stable version number. 0.07034 is
};
}
- return [ values %rels ];
+ return [ map { $rels{$_} } sort keys %rels ];
}
if ($typetype && $typetype eq 'e') {
# The following will extract a list of allowed values for the
# enum.
+ my $order_column = $self->dbh->{pg_server_version} >= 90100 ? 'enumsortorder' : 'oid';
my $typevalues = $self->dbh
->selectall_arrayref(<<EOF, {}, $info->{data_type});
SELECT e.enumlabel
FROM pg_catalog.pg_enum e
JOIN pg_catalog.pg_type t ON t.oid = e.enumtypid
WHERE t.typname = ?
+ORDER BY e.$order_column
EOF
$info->{extra}{list} = [ map { $_->[0] } @$typevalues ];