From: Rafael Kitover Date: Thu, 8 Apr 2010 16:17:29 +0000 (+0000) Subject: syntax error X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89f85d8245a55f8b284fbdc18a20f2f95d457746;p=dbsrgits%2FDBIx-Class-Historic.git syntax error --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm index 49cd9e6..94582da 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm @@ -60,13 +60,13 @@ sub _get_server_version { my $product_version = $self->_get_dbh->selectrow_hashref('xp_msver ProductVersion'); - if ((my $version = $data->{Character_Value}) =~ /^(\d+)\./) { + if ((my $version = $product_version->{Character_Value}) =~ /^(\d+)\./) { return $version; } else { $self->throw_exception( "MSSQL Version Retrieval Failed, Your ProductVersion's Character_Value is missing or malformed!" - }); + ); } }