Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ public static String getClobStringWithLinebreak(Clob clob) throws SQLException,
*/

public static String escapeSingleQuote(String x) {
return escapeSingleQuote(x, false);
return escapeSingleQuote(x, false)
// In some cases it still got unescaped single quote.
// e.g. during node drag and drop operation when the node name contains a single quote.
// Therefore, we handle it explicitly to make sure there is no unescaped single quote.
.replace("'", "''") // replace all, regardless.
.replace("''''", "''"); // change back for those that were escaped twice.
}


Expand Down