Skip to content

Commit

Permalink
Fix: mixed number columns was wrongly detected as integer
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Nov 5, 2014
1 parent 86e6798 commit 522d854
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rd_ui/app/scripts/services/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
_.each(this.query_result.data.rows, function (row) {
_.each(row, function (v, k) {
if (angular.isNumber(v)) {
if (parseInt(v) === v) {
columnTypes[k] = 'integer';
} else {
columnTypes[k] = 'float';
}
columnTypes[k] = 'float';
} else if (_.isString(v) && v.match(/^\d{4}-\d{2}-\d{2}T/)) {
row[k] = moment(v);
columnTypes[k] = 'datetime';
Expand Down

0 comments on commit 522d854

Please sign in to comment.