fix(sql): mode collection - handle empty sql requests (#3287)
This commit is contained in:
parent
3a89dc62e7
commit
140fa3ec50
|
@ -218,6 +218,7 @@ sub collect_sql_tables {
|
|||
$options{sql}->query(query => $table->{query});
|
||||
$self->add_builtin(name => 'sqlExecutionTime.' . $table->{name}, value => tv_interval($timing0, [gettimeofday]));
|
||||
|
||||
$self->{sql_collected}->{tables}->{ $table->{name} } = {};
|
||||
my $i = 0;
|
||||
while (my $entry = $options{sql}->fetchrow_hashref()) {
|
||||
my $instance = $i;
|
||||
|
|
Loading…
Reference in New Issue