X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCtrlO%2FDBIC%2FCursor%2FRowCountStatistics.pm;h=1e3221df7e7f31d145bd91e669563b2365810363;hb=dcf77f95bad23c96a80a80cb42daca643897201f;hp=882cc54b846c5cc4e817ef6ea3a242cc4d36803f;hpb=f6e5b2758375964fd8eba24b30de87e91c6782bf;p=dbsrgits%2FDBIx-Class-RowCountStatistics.git diff --git a/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm b/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm index 882cc54..1e3221d 100644 --- a/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm +++ b/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm @@ -47,7 +47,8 @@ sub _emit_query_complete { $count, $self->storage->_cached_sql, # TODO pass bind params - ) if $self->storage->debug; + ) if $self->storage->debug + and $self->storage->debugobj->can('query_complete'); } 1;