From: Rafael Kitover Date: Tue, 11 May 2010 02:54:48 +0000 (-0400) Subject: Oracle: lowercase uniq constr. names X-Git-Tag: 0.07000~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f28e7eaeef5a89298c91600d60a120eec67784c2;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Oracle: lowercase uniq constr. names --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm index 2f26240..7c4ea38 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm @@ -101,7 +101,7 @@ sub _table_uniq_info { $sth->execute($self->_uc($table),$self->{db_schema} ); my %constr_names; while(my $constr = $sth->fetchrow_arrayref) { - my $constr_name = $constr->[0]; + my $constr_name = $self->_lc($constr->[0]); my $constr_col = $self->_lc($constr->[1]); $constr_name =~ s/\Q$self->{_quoter}\E//; $constr_col =~ s/\Q$self->{_quoter}\E//;