Skip to content

Commit

Permalink
[bugfix][lib][rdbms] Only delete the first update to avoid affecting …
Browse files Browse the repository at this point in the history
…fields whose names contain 'update'
  • Loading branch information
kingronjan authored Nov 11, 2024
1 parent 6f33396 commit d2e3a84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ else if (dataBaseType == DataBaseType.SQLServer) {

private static String doPostgresqlUpdate(String writeMode, List<String> columnHolders)
{
String conflict = writeMode.replace("update", "");
String conflict = writeMode.replaceFirst("update", "");
StringBuilder sb = new StringBuilder();
sb.append(" ON CONFLICT ");
sb.append(conflict);
Expand Down

0 comments on commit d2e3a84

Please sign in to comment.