Skip to content

Commit 780e2ca

Browse files
shitoutiezhu
authored andcommitted
[hotfix-53286][jdbc] Fix the DynamicPreparedStmt cache invalidation of the same table caused by different RowKind.
1 parent d597d77 commit 780e2ca

File tree

1 file changed

+1
-1
lines changed
  • flinkx-connectors/flinkx-connector-jdbc-base/src/main/java/com/dtstack/flinkx/connector/jdbc/sink

1 file changed

+1
-1
lines changed

flinkx-connectors/flinkx-connector-jdbc-base/src/main/java/com/dtstack/flinkx/connector/jdbc/sink/PreparedStmtProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void getOrCreateFieldNamedPstmt(RowData row) throws ExecutionException {
164164
}
165165
} else {
166166
String key =
167-
getPstmtCacheKey(jdbcConf.getSchema(), jdbcConf.getTable(), row.getRowKind());
167+
getPstmtCacheKey(jdbcConf.getSchema(), jdbcConf.getTable(), RowKind.INSERT);
168168
DynamicPreparedStmt fieldNamedPreparedStatement =
169169
pstmtCache.get(
170170
key,

0 commit comments

Comments
 (0)