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

Shift/reduce conflicts for NAMES,ROLE,PASSWORD in the option_value_no_option_type grammar

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4
    • Fix Version/s: 10.3.11
    • Component/s: Parser
    • Labels:
      None

      Description

      The grammar rule option_value_no_option_type has shift/reduce conflicts for the following keywords:

      • NAMES_SYM
      • ROLE_SYM
      • PASSWORD_SYM

      These keywords appear in explicit grammar branches, and at the same time as a part of ident.

      To fix conflicts, this grammar branch:

      option_value_no_option_type:
                ident equal set_expr_or_default
                {
                  if (unlikely(Lex->set_variable(&$1, $3)))
                    MYSQL_YYABORT;
                }
      

      should be change to something like this:

      option_value_no_option_type:
                ident_set_usual_case equal set_expr_or_default
                {
                  if (unlikely(Lex->set_variable(&$1, $3)))
                    MYSQL_YYABORT;
                }
      

      were ident_set_usual_case won't include keywords NAMES_SYM, ROLE_SYM, PASSWORD_SYM.

        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: