fix(canal/client-adapter): 修复adapter插件全量同步sqlservice错误(#5564) (#5566)

This commit is contained in:
usedssl
2026-02-12 15:13:37 +08:00
committed by GitHub
parent 54c84b1535
commit fcadf564ba

View File

@@ -44,6 +44,8 @@ public class Util {
if ("postgresql".equals(druidDataSource.getDbType())) { if ("postgresql".equals(druidDataSource.getDbType())) {
conn.setAutoCommit(false); conn.setAutoCommit(false);
stmt.setFetchSize(1000); stmt.setFetchSize(1000);
} else if ("sqlserver".equals(druidDataSource.getDbType())) {
stmt.setFetchSize(100);
} else { } else {
stmt.setFetchSize(Integer.MIN_VALUE); stmt.setFetchSize(Integer.MIN_VALUE);
} }