projects
/
dbsrgits/DBIx-Class-RowCountStatistics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
only call query_complete when the debugobj supports it
[dbsrgits/DBIx-Class-RowCountStatistics.git]
/
lib
/
CtrlO
/
DBIC
/
Cursor
/
RowCountStatistics.pm
diff --git
a/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm
b/lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm
index
882cc54
..
1e3221d
100644
(file)
--- 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;