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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.3.11
    • Parser
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.