From: Rafael Kitover Date: Wed, 9 Dec 2009 15:12:56 +0000 (+0000) Subject: fix _get_mssql_version for ODBC X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=322ac74746c0ec7bb03f9241241ce7d0b928f929;p=dbsrgits%2FDBIx-Class-Historic.git fix _get_mssql_version for ODBC --- diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm index d0a0133..1b51b57 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm @@ -175,6 +175,14 @@ sub connect_call_use_MARS { } } +sub _get_mssql_version { + my $self = shift; + + my ($version) = $self->_get_dbh->get_info(18) =~ /^(\d+)/; + + return $version; +} + 1; =head1 AUTHOR