Question regarding underscore in Numeric Literals
https://jira.mariadb.org/browse/MDEV-34228 I am trying my hands at this issue, which is a new feature introduced in SQL2023 and have been unable to determine if the underscore should only be part of queries, or it should be part of the users query's outputs. Also I have been trying to fiddle, around the parser in sql_lex.cc. Any pointers or guidance on how to approach this? Rohan Gupta
Hi, Rohan, On Jul 07, Rohan Gupta via developers wrote:
https://jira.mariadb.org/browse/MDEV-34228
I am trying my hands at this issue, which is a new feature introduced in SQL2023 and have been unable to determine if the underscore should only be part of queries, or it should be part of the users query's outputs.
Also I have been trying to fiddle, around the parser in sql_lex.cc. Any pointers or guidance on how to approach this?
See sql_lex.cc. Lexer is a state machine, you can see statements like case case MY_LEX_IDENT: etc. Find the state that you need and see how it's parsed. Follow the code from there. Regards, Sergei Chief Architect, MariaDB Server and security@mariadb.org
participants (2)
-
Rohan Gupta
-
Sergei Golubchik