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

sql_yacc.yy: add %type create_field for field_spec and column_def

    XMLWordPrintable

Details

    Description

      We'll introduce a new token type "create_field" in sql_yacc.yy:

      %union {
      ...
        Create_field *create_field;
      ...
      }

      and change data type of the rules "field_spec" from and "column_def from NONE to create_field.

      The rule "field_spec" will return the value created by this code:

      field_spec:
                field_ident
                {
                  LEX *lex=Lex;
                  Create_field *f= new Create_field();
               ...

      The rule "column_def" will further return the value created by its "field_spec" part.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.