不要怂,就是干,撸起袖子干!

Commit 23a727f2 by Martin Blumenstingl

Fixed parsing non-standard DECIMAL during min() and max().

DECIMAL() and DECIMAL(10,3) are not the same - but the type matches.
1 parent 0437831e
Showing with 6 additions and 1 deletions
...@@ -687,7 +687,12 @@ module.exports = (function() { ...@@ -687,7 +687,12 @@ module.exports = (function() {
var result = data ? data[attributeSelector] : null var result = data ? data[attributeSelector] : null
if (options && options.dataType) { if (options && options.dataType) {
switch (options.dataType) { var dataType = options.dataType;
if (dataType instanceof DataTypes.DECIMAL) {
dataType = DataTypes.DECIMAL;
}
switch (dataType) {
case DataTypes.INTEGER: case DataTypes.INTEGER:
case DataTypes.BIGINT: case DataTypes.BIGINT:
result = parseInt(result, 10); result = parseInt(result, 10);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!