only call query_complete when the debugobj supports it
[dbsrgits/DBIx-Class-RowCountStatistics.git] / lib / CtrlO / DBIC / Cursor / RowCountStatistics.pm
index 882cc54..1e3221d 100644 (file)
@@ -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;