Add precision/scale
This commit is contained in:
parent
3190298aac
commit
dcada03c43
|
@ -696,7 +696,9 @@ DataSource.prototype.discoverSchemas = function (modelName, options, cb) {
|
|||
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]) {
|
||||
|
@ -706,6 +708,8 @@ DataSource.prototype.discoverSchemas = function (modelName, options, cb) {
|
|||
columnName: i.columnName,
|
||||
dataType: i.dataType,
|
||||
dataLength: i.dataLength,
|
||||
dataPrecision: item.dataPrecision,
|
||||
dataScale: item.dataScale,
|
||||
nullable: i.nullable
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue