From: Rafael Kitover Date: Fri, 26 Mar 2010 21:05:04 +0000 (-0400) Subject: lowercase schema name for MSSQL X-Git-Tag: 0.06000~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=43170884f059b9d068b133bcfdebf511c30420ba;p=dbsrgits%2FDBIx-Class-Schema-Loader.git lowercase schema name for MSSQL --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm index 10af9bd..1023ebd 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm @@ -32,9 +32,9 @@ sub _tables_list { my $sth = $dbh->prepare(<<'EOF'); SELECT t.table_name FROM information_schema.tables t -WHERE t.table_schema = ? +WHERE lower(t.table_schema) = ? EOF - $sth->execute($self->db_schema); + $sth->execute(lc $self->db_schema); my @tables = map @$_, @{ $sth->fetchall_arrayref };