LucaCappelletti94 opened a new pull request, #2688:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2688

   MySQL accepts `SELECT t.x'ff' FROM t` as column `x` with alias `ff`, and 
similarly accepts qualified columns named `b` and `n`. The tokenizer recognizes 
a prefixed literal after the period, so these queries fail to parse. 
Qualified-name rules are documented by 
[MySQL](https://dev.mysql.com/doc/refman/8.4/en/identifiers.html) and 
[MariaDB](https://mariadb.com/docs/server/reference/sql-structure/sql-language-structure/identifier-names).
   
   `Dialect::supports_literal_prefix_in_qualified_name()` enables identifier 
tokenization immediately after a period for MySQL and the generic dialect. 
Whitespace or comments after the period retain literal tokenization, as do 
unqualified prefixes. Other dialects retain their literal handling.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to