diff --git a/lib/datasource.js b/lib/datasource.js index f4a250ae..cd391d84 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -836,7 +836,9 @@ DataSource.prototype.discoverSchemasSync = function (modelName, options) { schema.properties[propName] = { type: item.type, required: (item.nullable === 'N'), - length: item.dataLength + length: item.dataLength, + precision: item.dataPrecision, + scale: item.dataScale }; if (pks[item.columnName]) { @@ -846,6 +848,8 @@ DataSource.prototype.discoverSchemasSync = function (modelName, options) { columnName: i.columnName, dataType: i.dataType, dataLength: i.dataLength, + dataPrecision: item.dataPrecision, + dataScale: item.dataScale, nullable: i.nullable }; });