Skip to content

Commit

Permalink
fix pg
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Sep 19, 2024
1 parent 5e20e3a commit 76ab1fb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,12 @@ public static <Entity> String updateList(
.append("' THEN NULL ");
}
}
caseClause.append("ELSE \"").append(entry.getValue()).append("\" ");
if (caseClause.toString().endsWith("CASE ")) {
caseClause.append("WHEN TRUE THEN ");
} else {
caseClause.append("ELSE ");
}
caseClause.append(entry.getValue()).append(" ");
caseClause.append("END");
setClauses.put(entry.getValue(), caseClause);
}
Expand Down

0 comments on commit 76ab1fb

Please sign in to comment.