Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Bug: List and Open Saved Queries executes the query if not connected to a database prior #125

@Coteh

Description

@Coteh

Issue Type

  • Feature Request
  • Bugfix/Errors
  • Questions
  • Other

Prerequisites (For bugfixes)

  • Are you running the latest version?
  • Did you check the logs?
  • Did you check the Setup?

Description

Found this weird oddity with how the List and Open Saved Queries command works. If I'm not connected to a database (ex. I just opened up Sublime Text) and I run the command, and after selecting my database in the dropdown, it will actually execute the query instead of open a new tab containing the query. However, all subsequent queries I open with List and Open Saved Queries will open the query in a new tab properly without executing it. I presume this is because I'm already logged in and thus doesn't do that extra measure anymore which may contain a call to execute query instead of open it. I can self-assign to this issue and look into it further if you guys like. :)

Steps to Reproduce (For bugfixes)

  1. (Close and re-)Open Sublime Text
  2. Select "ST: List and Open Saved Queries" or press Ctrl-E, Ctrl-O if using default keybinds
  3. Select database connection
  4. Select saved query from dropdown

Expected behavior: Query is opened in a new tab

Actual behavior: Query is executed

Versions

  • Version: v0.9.4
  • OS: Windows 10 x64
  • RDBMS: PostgreSQL

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions