use sp_fkeys @fktable_name in MSSQL in lowercase (for case sensitive collations)
Rafael Kitover [Sat, 27 Mar 2010 14:39:16 +0000 (10:39 -0400)]
lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm

index 467cffb..fa21dc4 100644 (file)
@@ -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;
     };