Add precision/scale

This commit is contained in:
Raymond Feng 2013-07-25 15:05:49 -07:00
parent 3190298aac
commit dcada03c43
1 changed files with 5 additions and 1 deletions

View File

@ -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
};
});