Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17664

Add sql_mode specific tokens for ':' and '%'

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.3.11
    • Component/s: Parser
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: