Skip dumping unique indexes with expressions (RT#93613)
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 4 Apr 2014 15:27:22 +0000 (16:27 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 4 Apr 2014 15:27:22 +0000 (16:27 +0100)
commitb32f8189f71d9a756c645c7288f74d4f9f61b74d
tree99c404b0858dd81dfeec865231a1f1ba3fea2174
parent1f212b4b34a60c2140c6f9c2031826959c8730f6
Skip dumping unique indexes with expressions (RT#93613)

DBD::Pg 3.0.0 returns expression indexes from ->statistics_info, with
COLUMN_NAME => undef and pg_expression => $expression.  Because
->_table_uniq_info just skipped individual rows without COLUMN_NAME,
an index contains a mix of plain columns and expressions would
generate erroneous ->add_unique_constraint() calls.
Changes
lib/DBIx/Class/Schema/Loader/DBI.pm
t/10_03pg_common.t