Skip to content

Commit

Permalink
HCK-8490: Escape quotes in comment in DDL: Oracle (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightlngale authored Oct 28, 2024
1 parent cd47fe8 commit b71561a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forward_engineering/utils/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ module.exports = _ => {
return scriptFormat === 'nonquotedIdentifier' ? name : wrapInQuotes(name);
};

const wrapComment = comment => `'${comment}'`;
const wrapComment = comment => `'${comment.replace(/'/g, "''")}'`;

const getNamePrefixedWithSchemaNameForScriptFormat = scriptFormat => (name, schemaName) => {
if (schemaName) {
Expand Down

0 comments on commit b71561a

Please sign in to comment.