Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Columns with spaces in column names cause incorrect query generation #97

Closed
aleybovich opened this issue Mar 31, 2020 · 1 comment
Closed

Comments

@aleybovich
Copy link

I have a table with a column like 'Connection url' and when I right-click the table in the sidebar and choose 'New Query [Select]', the generated query has the column name without quotes, which obviously fails to execute. The fix should be surrounding such columns that have spaces or special characters with a single quote.

instead of SELECT Connection url FROM blah
it should generate SELECT 'Connection url' FROM blah

@AlexCovizzi
Copy link
Owner

AlexCovizzi commented Apr 26, 2020

Hi @aleybovich! The issue has been fixed in master. Columns with spaces in the name are wrapped in `.
Example: SELECT `Connection url` FROM blah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants