Created
March 14, 2012 18:04
-
-
Save rkitover/2038277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/DBIx/Class/Schema/Loader/DBI.pm b/lib/DBIx/Class/Schema/Loader/DBI.pm | |
index 1ed2fee..266eb50 100644 | |
--- a/lib/DBIx/Class/Schema/Loader/DBI.pm | |
+++ b/lib/DBIx/Class/Schema/Loader/DBI.pm | |
@@ -405,7 +405,7 @@ sub _table_fk_info { | |
my $relid = ($raw_rel->[11] || ( "__dcsld__" . $i++ )); | |
foreach my $var ($uk_scm, $uk_tbl, $uk_col, $fk_scm, $fk_col, $relid) { | |
- $var =~ s/[\Q$self->{quote_char}\E]//g; | |
+ $var =~ s/[\Q$self->{quote_char}\E]//g if defined $var; | |
} | |
if ($self->db_schema && $self->db_schema->[0] ne '%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment