Oracle: lowercase uniq constr. names
Rafael Kitover [Tue, 11 May 2010 02:54:48 +0000 (22:54 -0400)]
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm

index 2f26240..7c4ea38 100644 (file)
@@ -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//;