only call query_complete when the debugobj supports it
Robert Sedlacek [Wed, 26 Aug 2015 17:05:54 +0000 (17:05 +0000)]
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;