Skip to content

Commit

Permalink
Merge pull request #10 from VitaliiBedletskyi/main
Browse files Browse the repository at this point in the history
HCK-3483 escape UDT type name by double quotes
  • Loading branch information
mtseluiko authored May 5, 2023
2 parents e85b79d + 58d8354 commit 633a0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forward_engineering/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ module.exports = (baseProvider, options, app) => {
},

convertColumnDefinition(columnDefinition) {
const type = this.hasType(columnDefinition.type) ? decorateType(columnDefinition.type, columnDefinition) : columnDefinition.type;
const type = this.hasType(columnDefinition.type) ? decorateType(columnDefinition.type, columnDefinition) : `"${columnDefinition.type}"`;
const inlineLength = columnDefinition.inlineLength ? ` INLINE LENGTH ${columnDefinition.inlineLength}` : '';
const notNull = columnDefinition.required ? ' NOT NULL' : '';
const inlineUniqueConstraint = columnDefinition.unique && !columnDefinition.nullable ? ' UNIQUE' : '';
Expand Down

0 comments on commit 633a0ee

Please sign in to comment.