From: Robert Sedlacek Date: Wed, 26 Aug 2015 17:42:13 +0000 (+0000) Subject: remove unnecessary sth inspection since _emit_query_complete will use the storage... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-RowCountStatistics.git;a=commitdiff_plain;h=ff601bd26dab6e8969115121aab3dcb444027a50 remove unnecessary sth inspection since _emit_query_complete will use the storage wrapper --- diff --git a/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm b/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm index 97ad5e6..3edfd95 100644 --- a/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm +++ b/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm @@ -37,7 +37,7 @@ around all => sub { before __finish_sth => sub { my ($self) = @_; - my $sql = $self->sth->{Statement}; + $self->_emit_query_complete($self->{_ctrlo_rcs_count} || 0); };