Fix index issue in Parser::DBI::PostgreSQL
authorCedric Carree <cedric.carree@mancalanetworks.com>
Tue, 22 Nov 2011 10:15:10 +0000 (11:15 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 24 Dec 2011 05:09:13 +0000 (06:09 +0100)
commitc601ca5da1eabe59d4dd09b9265923573fb72ec6
tree69d8437ba483f1e4d3725613bbcc0aa75dc1e52f
parenta23f9a9db103d35a5f953033e5ab18ad65aa1fb2
Fix index issue in Parser::DBI::PostgreSQL

pg_index.indkey does not necessaraly matches the id of the columns_name array. It happens when a column is dropped after the table was created.
Changes
lib/SQL/Translator/Parser/DBI/PostgreSQL.pm
t/66-postgres-dbi-parser.t