X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSQLAHacks.pm;h=90d41b22c684c6e84157f598f610b5568fbee899;hb=a964a928b10f79f18e4e3f5dbf2380174a0f7ca2;hp=c3de65984435223a257af1c7051e5fb118fe0543;hpb=613f65e5493254510c8201119165bcb55291b516;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/SQLAHacks.pm b/lib/DBIx/Class/SQLAHacks.pm index c3de659..90d41b2 100644 --- a/lib/DBIx/Class/SQLAHacks.pm +++ b/lib/DBIx/Class/SQLAHacks.pm @@ -105,8 +105,10 @@ sub _find_syntax { # RowNumberOver is still needed here (should be part of SQLA) leave the # code in place my $dbhname = blessed($syntax) ? $syntax->{Driver}{Name} : $syntax; - if(ref($self) && $dbhname && $dbhname eq 'DB2') { - return 'RowNumberOver'; + if(ref($self) && $dbhname) { + if ($dbhname eq 'DB2') { + return 'RowNumberOver'; + } } $self->{_cached_syntax} ||= $self->SUPER::_find_syntax($syntax);