From 793716c6f70ea5e9d0c8b48103677304c5c8e08e Mon Sep 17 00:00:00 2001 From: Zach Boldyga Date: Wed, 26 Aug 2020 12:46:01 -0700 Subject: [PATCH] tentative increment change. --- src/tap_mssql/sync_strategies/logical.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tap_mssql/sync_strategies/logical.clj b/src/tap_mssql/sync_strategies/logical.clj index 6ea8390..8b2940b 100644 --- a/src/tap_mssql/sync_strategies/logical.clj +++ b/src/tap_mssql/sync_strategies/logical.clj @@ -163,7 +163,7 @@ (map #(format "%s.%s.%s" schema-name table-name %) record-keys))))) from-clause (format " FROM CHANGETABLE (CHANGES %s.%s, %s) as c " schema-name table-name (if (> current-log-version 0) - (dec current-log-version) + current-log-version 0)) join-clause (format "LEFT JOIN %s.%s ON %s LEFT JOIN %s on %s" schema-name