From: Rafael Kitover Date: Sat, 27 Mar 2010 14:39:16 +0000 (-0400) Subject: use sp_fkeys @fktable_name in MSSQL in lowercase (for case sensitive collations) X-Git-Tag: 0.06000~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea8d5d7c7145cf9eba916c857d4f67839fd64533;p=dbsrgits%2FDBIx-Class-Schema-Loader.git use sp_fkeys @fktable_name in MSSQL in lowercase (for case sensitive collations) --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm index 467cffb..fa21dc4 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm @@ -62,7 +62,7 @@ sub _table_fk_info { my ($local_cols, $remote_cols, $remote_table, @rels, $sth); my $dbh = $self->schema->storage->dbh; eval { - $sth = $dbh->prepare(qq{sp_fkeys \@FKTABLE_NAME = '$table'}); + $sth = $dbh->prepare(qq{sp_fkeys \@fktable_name = '$table'}); $sth->execute; };