Skip to content

Commit

Permalink
Change null cursor value query to not use IIF sql function
Browse files Browse the repository at this point in the history
  • Loading branch information
rodireich committed Feb 19, 2024
1 parent 27abc6d commit 8324933
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class MssqlSource extends AbstractJdbcSource<JDBCType> implements Source
""";
public static final String NULL_CURSOR_VALUE_WITH_SCHEMA_QUERY =
"""
SELECT CAST(IIF(EXISTS(SELECT TOP 1 1 FROM "%s"."%s" WHERE "%s" IS NULL), 1, 0) AS BIT) AS %s
SELECT CASE WHEN (SELECT TOP 1 1 FROM "%s"."%s" WHERE "%s" IS NULL)=1 then 1 else 0 end as %s
""";
public static final String DRIVER_CLASS = DatabaseDriver.MSSQLSERVER.getDriverClassName();
public static final String MSSQL_CDC_OFFSET = "mssql_cdc_offset";
Expand Down

0 comments on commit 8324933

Please sign in to comment.