Describe the bug
'No active connection found' and 'You need to create the connection first!' messages for trying to run statements when active connection exists. Can use the command 'Run on active connection' for blocks but not Run on individual statements.
To Reproduce
Steps to reproduce the behavior:
Go to SQLTools>Connections>Add New Connection
Set up connection to local database, using localhost, port 3306, database name 'user' password 'password' password mode save as plaintext.
Test connection, confirm "successfully connected" message. Save connection.
Press 'CONNECT NOW'.
Write a simple statement like CREATE TABLE test(id INT PRIMARY KEY AUTO_INCREMENT);
Click 'Run' above the statement.
Expected behavior
The query triggers as expected, creating a new table called test with one empty column.
Screenshots
Enter data:
Test connection:
Connection exists:
'Connect now':
Fault occurs:
Possibly relevant warnings:
Desktop (please complete the following information):
SQLTools Version: v0.28.3
VS Code Version: v.1.90.2
OS: Windows
Driver:
[ x ] MySQL/MariaDB
Database version: [e.g. MySQL v5.6, PostgreSQL vX...]
MySQL Server 8.4.
Additional context
Was following a tutorial by Fireship to set up my database and got stuck on not being able to run code on blocks ( -- @block) and noticed it didn't work.
Describe the bug 'No active connection found' and 'You need to create the connection first!' messages for trying to run statements when active connection exists. Can use the command 'Run on active connection' for blocks but not Run on individual statements.
To Reproduce Steps to reproduce the behavior:
Expected behavior The query triggers as expected, creating a new table called test with one empty column.
Screenshots Enter data:![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/2d6d7acd-bedb-4a54-a9f8-cbec78c94b5b)
Test connection:![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/bebbb005-8a74-4e31-937e-3b242e80cdea)
Connection exists:![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/ac52c86f-4764-4725-a983-8b1049c21db7)
'Connect now':![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/41117726-80a5-409b-8e51-8495411a0042)
Fault occurs:![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/8ab54e36-74ce-4e0f-8c65-46f196423231)
Possibly relevant warnings:![image](https://github.com/mtxr/vscode-sqltools/assets/34066570/d6169af3-d045-4c1f-a874-bcecccd0b930)
Desktop (please complete the following information):
Additional context Was following a tutorial by Fireship to set up my database and got stuck on not being able to run code on blocks ( -- @block) and noticed it didn't work.