mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Dave Page
parent
4d45a3cb24
commit
7627e9c699
@@ -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]
|
||||
|
Reference in New Issue
Block a user