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] = {
|
schema.properties[propName] = {
|
||||||
type: item.type,
|
type: item.type,
|
||||||
required: (item.nullable === 'N'),
|
required: (item.nullable === 'N'),
|
||||||
length: item.dataLength
|
length: item.dataLength,
|
||||||
|
precision: item.dataPrecision,
|
||||||
|
scale: item.dataScale
|
||||||
};
|
};
|
||||||
|
|
||||||
if (pks[item.columnName]) {
|
if (pks[item.columnName]) {
|
||||||
|
@ -706,6 +708,8 @@ DataSource.prototype.discoverSchemas = function (modelName, options, cb) {
|
||||||
columnName: i.columnName,
|
columnName: i.columnName,
|
||||||
dataType: i.dataType,
|
dataType: i.dataType,
|
||||||
dataLength: i.dataLength,
|
dataLength: i.dataLength,
|
||||||
|
dataPrecision: item.dataPrecision,
|
||||||
|
dataScale: item.dataScale,
|
||||||
nullable: i.nullable
|
nullable: i.nullable
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue