From 58d83545dd289bde057a72333945d26532b37520 Mon Sep 17 00:00:00 2001 From: Vitalii Bedletskyi Date: Fri, 5 May 2023 13:04:31 +0300 Subject: [PATCH] escape UDT type name by double quotes --- forward_engineering/ddlProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index 5cafae0..5dcd1c8 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -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' : '';