Skip to content

Commit

Permalink
fix(connector): idle transaction SHOW TRANSACTION ISOLATION LEVEL w…
Browse files Browse the repository at this point in the history
…hen no sinked data (#16847)
  • Loading branch information
yuhao-su authored May 21, 2024
1 parent 7bb5480 commit e8a3e33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public JDBCSink(JDBCSinkConfig config, TableSchema tableSchema) {
"JDBC connection: autoCommit = {}, trxn = {}",
conn.getAutoCommit(),
conn.getTransactionIsolation());
// Commit the `getTransactionIsolation`
conn.commit();

jdbcStatements = new JdbcStatements(conn);
} catch (SQLException e) {
Expand Down

0 comments on commit e8a3e33

Please sign in to comment.