From: Rafael Kitover Date: Tue, 11 May 2010 15:44:15 +0000 (+0000) Subject: clearer logic X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=233c3a461db751984354047c67a0511eb13c233f;p=dbsrgits%2FDBIx-Class-Historic.git clearer logic --- diff --git a/t/74mssql.t b/t/74mssql.t index 78e4691..f8b3849 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -199,9 +199,9 @@ SQL $storage->sql_maker; my $rno_detected = - ($storage->{_sql_maker_opts}{limit_dialect} eq 'RowNumberOver'); + ($storage->{_sql_maker_opts}{limit_dialect} eq 'RowNumberOver') ? 1 : 0; - ok ((not ($have_rno xor $rno_detected)), + ok (($have_rno == $rno_detected), 'row_number() over support detected correctly'); } }