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
Describe the bug
Filters being saved across separate queries causing unexpected missing results.
To Reproduce (Scenario 1)
Create new SQL file with two simple queries similar to the following: SELECT jobname, jobid FROM jenkins_piperun; SELECT count(*) FROM jenkins_piperun;
Put cursor on the first query run command "SQLTools Connection: Run Current Query"
Note the results, and add a simple filter to one of the columns. I filtered a column with comma ",".
Put cursor on the second query run command "SQLTools Connection: Run Current Query"
NOTE the result on the count(*) query is No Data.
The only way to get data back is to rerun the first query and remove the filter.
To Reproduce (Scenario 2)
Create new SQL file with two simple queries similar to the following: SELECT jobname, jobid FROM jenkins_piperun; SELECT count(*) FROM jenkins_piperun;
Run the command "SQLTools Connection: Run This File"
Note the results, and add a simple filter to one of the columns on the first query result. I filtered a column with comma ",".
When there is a filter on the first query result, the second query result will show No Data.
The only way to get data back on the second query is to remove the filter on the first query.
Expected behavior
Would expect filters on one query to not affect results of another query. This is especially bad for scenario 1 above as there is no visible on-screen way to fix yourself unless you actively re-run the first query to remove the filter; but no one would expect to have to do that.
Desktop (please complete the following information):
SQLTools Version v0.28.3
SQLTools SQLite v0.5.1
VS Code Version: 1.90.0
OS: Ubuntu 24.04
Driver: SQLite
Database version: 3.45.1
Maybe applicable, I have the setting: "sqltools.results.reuseTabs": "connection"
The text was updated successfully, but these errors were encountered:
Describe the bug
Filters being saved across separate queries causing unexpected missing results.
To Reproduce (Scenario 1)
SELECT jobname, jobid FROM jenkins_piperun;
SELECT count(*) FROM jenkins_piperun;
No Data
.To Reproduce (Scenario 2)
SELECT jobname, jobid FROM jenkins_piperun;
SELECT count(*) FROM jenkins_piperun;
No Data
.Expected behavior
Desktop (please complete the following information):
"sqltools.results.reuseTabs": "connection"
The text was updated successfully, but these errors were encountered: