Skip to content

Commit

Permalink
Merge pull request #1 from kingronjan/optimize_pg_update_mode
Browse files Browse the repository at this point in the history
[bugfix][lib][rdbms] Only delete the first update to avoid affecting …
  • Loading branch information
kingronjan authored Nov 11, 2024
2 parents 6f33396 + d2e3a84 commit 7b0f4f8
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 7b0f4f8

Please sign in to comment.