From: Rafael Kitover Date: Fri, 7 May 2010 12:56:57 +0000 (+0000) Subject: minor change X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=68bb0d2ec053f895b3f110957a7cacd0f8934cba;p=dbsrgits%2FDBIx-Class-Historic.git minor change --- diff --git a/lib/DBIx/Class/Storage/DBI/MSSQL.pm b/lib/DBIx/Class/Storage/DBI/MSSQL.pm index dbba2fa..515ff9b 100644 --- a/lib/DBIx/Class/Storage/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Storage/DBI/MSSQL.pm @@ -217,7 +217,7 @@ sub sql_maker { # So, we use a query to check if RNO is implemented. $have_rno = 1 if (eval { local $@; ($self->_get_dbh ->selectrow_array('SELECT row_number() OVER (ORDER BY rand())') - )[0] } || 0); + )[0] }); } $self->{_sql_maker_opts} = {