diff --git a/CHANGELOG.md b/CHANGELOG.md index 3322aa31..5566969c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# tap-mssql 2.2.1 2023-10-30 + +* Bug Fix. Removing test code which slipped into the release, and adjusting offending code with correct dynamic column name. + # tap-mssql 2.2.0 2023-08-23 This feature increases support for SQL Datatypes. diff --git a/pyproject.toml b/pyproject.toml index e2bd2987..9bf60f21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tap-mssql" -version = "2.2.0" +version = "2.2.1" description = "A pipelinewise compatible tap for connecting Microsoft SQL Server" authors = ["Rob Winters "] license = "GNU Affero" diff --git a/tap_mssql/sync_strategies/common.py b/tap_mssql/sync_strategies/common.py index 82801a7f..c6613742 100755 --- a/tap_mssql/sync_strategies/common.py +++ b/tap_mssql/sync_strategies/common.py @@ -126,7 +126,7 @@ def prepare_columns_sql(catalog_entry, c): """ elif sql_data_type == 'datetimeoffset': return f"""case when {column_name} is not null then - CONVERT(VARCHAR,dt_offset_col,127) + CONVERT(VARCHAR,{column_name},127) else null end """