kdcro101 / vscode-cassandra

Design and query Apache Cassandra database with help of generated templates, autocomplete and inline code decorations in Visual Studio Code
GNU General Public License v3.0
22 stars 6 forks source link

Unable to execute multiple SELECT statements #3

Closed kashif-khan closed 5 years ago

kashif-khan commented 5 years ago

Describe the bug Open a new CQL editor. Type two select queries. Select a single statement from the editor and execute. The error says it cannot execute multiple SELECT statements.

To Reproduce Steps to reproduce the behavior:

  1. Open a new CQL editor.
  2. Type two select queries.
  3. Select a single statement from the editor and execute.
  4. The error says it cannot execute multiple statements.

Expected behavior The editor should allow you to run the selected query from the editor.

Screenshots cassandra-workbench-bug-2

System info (please complete the following information):

kdcro101 commented 5 years ago

@kashif-khan ,

Thank you for reporting!

Execution of multiple SELECT statements is disabled by design. What results do you expect from executing multiple SELECT statements?

kashif-khan commented 5 years ago

@kdcro101 ,

In the example shown, I tried to execute a single SELECT statement by selecting it from the cursor for which it failed to execute. I am thinking that it should allow the user to have multiple statements in a file but only 1 can be executed at a time.

On the contrary, I would like to suggest the following features: