diff --git a/src/sources/mysql/sql/list-table-rows.sql b/src/sources/mysql/sql/list-table-rows.sql index 82f58c8..9509e49 100644 --- a/src/sources/mysql/sql/list-table-rows.sql +++ b/src/sources/mysql/sql/list-table-rows.sql @@ -4,7 +4,7 @@ -- excluding -- filter-list-to-where-clause excluding SELECT table_name, - cast(data_length/avg_row_length as integer) + coalesce(cast(data_length/avg_row_length as unsigned), 0) FROM information_schema.tables WHERE table_schema = '~a' and table_type = 'BASE TABLE'