Display errors during CSV download from the Query Tool in the UI rather than putting them in the CSV file. Fixes #4085

Ensure the toolbar buttons are properly reset following a CSV download in the Query Tool. Fixes #4096
This commit is contained in:
Aditya Toshniwal
2019-03-29 14:31:33 +00:00
committed by Dave Page
parent 4d45a3cb24
commit 7627e9c699
4 changed files with 101 additions and 69 deletions

View File

@@ -705,6 +705,12 @@ WHERE
)
return False, errmsg
# http://initd.org/psycopg/docs/cursor.html#cursor.description
# to avoid no-op
if cur.description is None:
return False, \
gettext('The query executed did not return any data.')
def handle_json_data(json_columns, results):
"""
[ This is only for Python2.x]