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
A clear and concise description of what the bug is.
I always write wrong sql code when developing. Such as this code:
select dept_name fromfrom dept;
The 'from' here is undoubtable an error. But with offitial Postgresql driver, I just get this error:
When it's a small query I can exactly find where it locates. But when query statement get larger, it's hard to locate the issue reported with only issue position such as "at character 199".
To Reproduce
Steps to reproduce the behavior:
Connect to any database with postgresql official driver.
Open vscode command panel and run "SQLTools: Run Query"
Write a obvious wrong sql query such as the one shown above.
See the shown error
Expected behavior
I try to connect to manually by psql -U user dbname and run command by typing. It give me the error position which can help a lot for me to locating the issue of my code:
ERROR: syntax error at or near "from"
LINE 1: select dept_name from from dept;
So I think if the error report just copy the output of the naitive connector, what's wrong with it?
Screenshots
Desktop (please complete the following information):
SQLTools Version v0.28.3
VS Code Version: 1.93
OS: Windows docker: Linux dev container
Driver:
[ *] PostgreSQL/Redshift
MySQL/MariaDB
MSSQL/Azure
SQLite
Other? Which...
Database version: Postgresql 16.2
Additional context
I have no deep in it if it is because of driver's issue. If it is, I would transfer this issue to the driver vscode plugin.
Thank you.
The text was updated successfully, but these errors were encountered:
nclear bug reporting when excuting sql query.
A clear and concise description of what the bug is.
I always write wrong sql code when developing. Such as this code:
The 'from' here is undoubtable an error. But with offitial Postgresql driver, I just get this error:
When it's a small query I can exactly find where it locates. But when query statement get larger, it's hard to locate the issue reported with only issue position such as "at character 199".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I try to connect to manually by
psql -U user dbname
and run command by typing. It give me the error position which can help a lot for me to locating the issue of my code:So I think if the error report just copy the output of the naitive connector, what's wrong with it?
Screenshots
Desktop (please complete the following information):
Additional context
I have no deep in it if it is because of driver's issue. If it is, I would transfer this issue to the driver vscode plugin.
Thank you.
The text was updated successfully, but these errors were encountered: