From 2a4c139663eaaea58f5f4df2a7083d502bcdc96d Mon Sep 17 00:00:00 2001 From: Josh lloyd Date: Wed, 17 Jul 2024 13:31:38 -0600 Subject: [PATCH] fixed results with 0 rows --- tap_mysql/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tap_mysql/client.py b/tap_mysql/client.py index a50b2ee..c99fad7 100644 --- a/tap_mysql/client.py +++ b/tap_mysql/client.py @@ -260,6 +260,8 @@ def discover_catalog_entries(self) -> list[dict]: ) custom_result = connection.execute(query) custom_rec = custom_result.fetchone() + if not custom_rec: + continue # inject the table_schema into the list of columns custom_rec_keys = list(custom_rec._fields) + ["mysql_schema"]