-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issue when column name contains escaped enclosing character #64
Comments
Greetings!
It really depends on your RDBMS and SQL flavor. Standard character quote is single simple quote SELECT 'My field with '' back () <<<<<< tick and a verryyyyyyyy long name' FROM MY_TABLE If you want to use backslash for quoting, you would need to set it explicitly as it collides with the |
Please, what RDBMS are you using exactly (allowing |
Here is an illustration of the issue, you will need to set the option The challenge is to define a Regular Expression matching anything between |
Hello, If the name of the column contains a Is there a way to provide our own Regular Expression for that ? As far as I understand these are hardcoded in an enum and cannot be extended |
Greetings. ClickHouse documentation just proves my point: It did not see anything about For Identifiers, 3 variants would work: SELECT `My field with `` back () <<<<<< tick and a verryyyyyyyy long name`
FROM my_table
;
-- works, but won't escape the ` and instead will print \`
SELECT "My field with \` back () <<<<<< tick and a verryyyyyyyy long name"
FROM my_table
;
SELECT "My field with "" back () <<<<<< tick and a verryyyyyyyy long name"
FROM my_table
; |
The query
produces
Which is no longer a valid query as the name has been split over multiple lines and whitespaces have been included.
I think that the first
`
is detected as the end of the name even though it is escaped with a\
.Is there any way to specify such an escape pattern in column names ?
The text was updated successfully, but these errors were encountered: