[MDEV-17664] Add sql_mode specific tokens for ':' and '%' Created: 2018-11-11  Updated: 2018-11-11  Resolved: 2018-11-11

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.3.11

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy Closed
Relates
relates to MDEV-17652 Add sql_mode specific tokens for some... Closed
relates to MDEV-17660 sql_mode=ORACLE: Some keywords do not... Closed
relates to MDEV-17661 Add sql_mode specific tokens for the ... Closed

 Description   

':' and '%' have different meaning in the default sql_mode and in sql_mode=ORACLE.

To unify sql_yacc.yy and sql_yacc_ora.yy easier, we'll add sql_mode specific tokens for '%' and '%' and modify the grammar in sql_yacc.yy and sql_yacc_ora.yy accordingly.

Instead of ':' and '%', we'll have separate COLON_ORACLE_SYM and PERCENT_ORACLE_SYM.

This will make possible for the native grammar rules and Oracle grammars rules to co-exists in the same *.yy files.

By default, Lex_input_stream::lex_one_token() will return ':' and '%', and translate them to COLON_ORACLE_SYM and PERCENT_ORACLE_SYM in Oracle compatibility mode.


Generated at Thu Feb 08 08:38:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.