Skip to content

Commit

Permalink
Testing a row is returned for verification tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s7clarke10 authored Aug 31, 2024
1 parent 1caf6b2 commit cd77d14
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tap_mssql/sync_strategies/log_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def verify_change_data_capture_table(connection, schema_name, table_name):
)
row = cur.fetchone()

return row[2]
if row:
return row[2]
else:
return False


def verify_change_data_capture_databases(connection):
Expand All @@ -40,11 +43,14 @@ def verify_change_data_capture_databases(connection):
)
row = cur.fetchone()

LOGGER.info(
"CDC Databases enable : Database %s, Enabled %s",
*row,
)
return row
if row:
LOGGER.info(
"CDC Databases enable : Database %s, Enabled %s",
*row,
)
return row
else:
return False


def verify_read_isolation_databases(connection):
Expand Down

0 comments on commit cd77d14

Please sign in to comment.