From: Robert Sedlacek Date: Wed, 26 Aug 2015 17:05:54 +0000 (+0000) Subject: only call query_complete when the debugobj supports it X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dcf77f95bad23c96a80a80cb42daca643897201f;p=dbsrgits%2FDBIx-Class-RowCountStatistics.git only call query_complete when the debugobj supports it --- 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;