Skip to content

Commit

Permalink
Attempt #2 at fixing bug converting error message in flat error recor…
Browse files Browse the repository at this point in the history
…ds to string suitable for inserting into a database.
  • Loading branch information
mfellows committed Jul 25, 2024
1 parent d9cd701 commit 1b6a5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/moja.modules.cbm/src/flatrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ namespace cbm {
if (csvFormat) {
boost::replace_all(errorStr, "\"", "'");
} else {
boost::replace_all(errorStr, "'", "\"");
boost::replace_all(errorStr, "'", "\\'");
}

return (boost::format(csvFormat ? csvRecord : dbRecord)
Expand Down

0 comments on commit 1b6a5d7

Please sign in to comment.