Skip to content

Commit

Permalink
Update PreparedStatementExecutor.java: fix updates
Browse files Browse the repository at this point in the history
  • Loading branch information
salisbury-espinosa authored Nov 4, 2024
1 parent 9103ab6 commit 053cc33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ public void insertPreparedStatement(Map<String, Integer> columnNameToIndexMap, P
} else {
ps.setLong(columnNameToIndexMap.get(versionColumn), record.getGtid());
}
} else {
} else if (record.getSequenceNumber() != -1) {
ps.setLong(columnNameToIndexMap.get(versionColumn), record.getSequenceNumber());
} else {
ps.setLong(columnNameToIndexMap.get(versionColumn), record.getLsn());
}
}

Expand Down

0 comments on commit 053cc33

Please sign in to comment.