Skip to content

Commit

Permalink
Fixed bug converting error message in flat error records to string su…
Browse files Browse the repository at this point in the history
…itable for inserting into a database.
  • Loading branch information
mfellows committed Jul 24, 2024
1 parent 84ed904 commit d9cd701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/moja.modules.cbm/src/flatrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ namespace cbm {

if (csvFormat) {
boost::replace_all(errorStr, "\"", "'");
} else {
boost::replace_all(errorStr, "'", "\"");
}

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

0 comments on commit d9cd701

Please sign in to comment.