Cannot correctly escape table name containing "-" symbol
See original GitHub issueSuppose database name is “test”, table name is “a.b.c-d”, then the escaped result is “test.a.b.c-d”, it will lead to syntax error in sql.
Expected result is “test.a.b.c-d
”, it will work.
Maybe some change shoule be made to func (q *EvalQuery) escapeIdentifier(identifier string) string
?
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:13
Top Results From Across the Web
Characters that are not allowed in table name & column name ...
Hi Sahil, you are correct... .. It is possible to use the above characters in Table name and Column Name using SSMS/TSQL square...
Read more >Cannot escape $ in table name within SQL query in ...
These $ characters can be properly escaped in PowerShell by using the backtick ( ` ) character, such as: ServiceManager.dbo.
Read more >SQL escape character for table name containing / in name
May be you could help or guide. using jdbc driver in python, developer is trying to read data from hana table which has...
Read more >Web Console does not help to escape "special" characters in ...
Successfully merging a pull request may close this issue. fix: escape table names while adding to editor questdb/questdb. 2 participants.
Read more >SQLite: escaping table and column names correctly - Blog
This is how to correctly escape column names, tables names and string values in SQLite 2 and 3 - especially if they contain...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same changes applied to golang part to look to https://github.com/Altinity/clickhouse-grafana/commit/8dfba84ac85b58c9667471e25d39cf87a6593892 for details
@visago 2.5.2 released, please test