You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export CSV (or Export JSON) should only export what is displayed, and shouldn't execute the SQL command from the textbox.
Current behavior allows export functionality to delete records. (with an error)
Expected behavior
I click on Export CSV button, and displayed results are exported, regardless if I changed the query.
(see proposed changes for other options)
Actual behavior
Export executes the SQL command, even if it is DELETE.
Steps to reproduce
Enter a SELECT command into SQL textbox.
Run the query.
Change the query text to DELETE (or any other query), don't execute it.
Click on Export CSV (or Export JSON).
Result: Despite that user sees records from old SQL query, records got deleted instead of exported.
Proposed changes
Export should use the last executed SQL command only what is showing in records, ignoring what is in the textbox.
Or at least: if SQL is changed in the textbox, export should be disabled.
Or (additionally): allow executing export only when a SELECT command is/was issued.
Applies to any export type.
The text was updated successfully, but these errors were encountered:
Problem/Motivation
Export CSV (or Export JSON) should only export what is displayed, and shouldn't execute the SQL command from the textbox.
Current behavior allows export functionality to delete records. (with an error)
Expected behavior
I click on Export CSV button, and displayed results are exported, regardless if I changed the query.
(see proposed changes for other options)
Actual behavior
Export executes the SQL command, even if it is DELETE.
Steps to reproduce
Enter a SELECT command into SQL textbox.
Run the query.
Change the query text to DELETE (or any other query), don't execute it.
Click on Export CSV (or Export JSON).
Result: Despite that user sees records from old SQL query, records got deleted instead of exported.
Proposed changes
Export should use the last executed SQL command only what is showing in records, ignoring what is in the textbox.
Or at least: if SQL is changed in the textbox, export should be disabled.
Or (additionally): allow executing export only when a SELECT command is/was issued.
Applies to any export type.
The text was updated successfully, but these errors were encountered: