Fix #781
This commit is contained in:
parent
04abebe2a2
commit
2e009eb3db
|
@ -61,7 +61,7 @@ sub run {
|
||||||
$self->{sql} = $options{sql};
|
$self->{sql} = $options{sql};
|
||||||
|
|
||||||
$self->{sql}->connect();
|
$self->{sql}->connect();
|
||||||
$self->{sql}->query(query => 'SELECT table_schema AS NAME, SUM(data_length+index_length)
|
$self->{sql}->query(query => 'SELECT table_schema AS NAME, IFNULL(SUM(data_length+index_length), 0)
|
||||||
FROM information_schema.tables
|
FROM information_schema.tables
|
||||||
GROUP BY table_schema');
|
GROUP BY table_schema');
|
||||||
my $result = $self->{sql}->fetchall_arrayref();
|
my $result = $self->{sql}->fetchall_arrayref();
|
||||||
|
|
Loading…
Reference in New Issue