Skip to content

Commit

Permalink
Don't show "0 B" as InnoDB table size when DBMS doesn't provide this …
Browse files Browse the repository at this point in the history
…data (Drizzle)
  • Loading branch information
piotrp committed May 9, 2011
1 parent 7e63fd4 commit 0f49267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db_structure.php
Expand Up @@ -175,7 +175,8 @@
$each_table['COUNTED'] = false;
}

if ($is_show_stats) {
// Drizzle doesn't provide data and index length, check for null
if ($is_show_stats && $each_table['Data_length'] !== null) {
$tblsize = $each_table['Data_length'] + $each_table['Index_length'];
$sum_size += $tblsize;
list($formatted_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0);
Expand Down

0 comments on commit 0f49267

Please sign in to comment.