This commit is contained in:
qgarnier 2017-12-11 11:00:40 +01:00
parent 04abebe2a2
commit 2e009eb3db
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ sub run {
$self->{sql} = $options{sql};
$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
GROUP BY table_schema');
my $result = $self->{sql}->fetchall_arrayref();