We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a35ffb8 commit 7832d0bCopy full SHA for 7832d0b
mysql/changelog.d/17875.fixed
@@ -0,0 +1 @@
1
+Fix metadata table source for MySQL 5.6
mysql/datadog_checks/mysql/metadata.py
@@ -108,7 +108,11 @@ def run_job(self):
108
@tracked_method(agent_check_getter=attrgetter('_check'))
109
def report_mysql_metadata(self):
110
settings = []
111
- table_name = MYSQL_TABLE_NAME if not self._check.is_mariadb else MARIADB_TABLE_NAME
+ table_name = (
112
+ MYSQL_TABLE_NAME
113
+ if not self._check.is_mariadb and self._check.version.version_compatible((5, 7, 0))
114
+ else MARIADB_TABLE_NAME
115
+ )
116
query = SETTINGS_QUERY.format(table_name=table_name)
117
with closing(self._get_db_connection().cursor(CommenterDictCursor)) as cursor:
118
self._cursor_run(
0 commit comments