From c4e18bb4818d3be9c4aaecd4642a7ae4e12ae4dc Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Sun, 18 Jun 2017 12:31:32 +0300 Subject: [PATCH] Fix: if column had no type it would use previous column's type --- client/app/services/query-result.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/app/services/query-result.js b/client/app/services/query-result.js index 9a2dc6de8..c7e1e0799 100644 --- a/client/app/services/query-result.js +++ b/client/app/services/query-result.js @@ -91,9 +91,8 @@ function QueryResultService($resource, $timeout, $q) { // on the column type set by the backend. This logic is prone to errors, // and better be removed. Kept for now, for backward compatability. each(this.query_result.data.rows, (row) => { - let newType = null; - each(row, (v, k) => { + let newType = null; if (isNumber(v)) { newType = 'float'; } else if (isString(v) && v.match(/^\d{4}-\d{2}-\d{2}T/)) {