question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot correctly escape table name containing "-" symbol

See original GitHub issue

Suppose 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

2reactions
Slachcommented, Aug 25, 2022
1reaction
Slachcommented, Sep 6, 2022

@visago 2.5.2 released, please test

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found