Skip to content

Commit

Permalink
#3034 Postgres query runner: handle NaN/Infinity values (#3035)
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko authored and arikfr committed Nov 1, 2018
1 parent 0784a0c commit 60c230a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def run_query(self, query, user):

data = {'columns': columns, 'rows': rows}
error = None
json_data = json_dumps(data)
json_data = json_dumps(data, ignore_nan=True)
else:
error = 'Query completed but it returned no data.'
json_data = None
Expand Down

0 comments on commit 60c230a

Please sign in to comment.