Skip to content

Commit

Permalink
datadog/mysql: when getting the size of the view db, it returns none …
Browse files Browse the repository at this point in the history
…and gets a TypeError. This defaults to 0 if null instead of none
  • Loading branch information
Raymond Wong committed Nov 19, 2019
1 parent ac28acd commit 6fb8ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/datadog_checks/mysql/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ def _query_size_per_schema(self, db):

sql_query_schema_size = """
SELECT table_schema,
SUM(data_length+index_length)/1024/1024 AS total_mb
IFNULL(SUM(data_length+index_length)/1024/1024,0) AS total_mb
FROM information_schema.tables
GROUP BY table_schema;
"""
Expand Down

0 comments on commit 6fb8ffc

Please sign in to comment.