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

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: 10.2
    • Component/s: None
    • Labels:
      None

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no comments yet on this issue.

                People

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

                  Dates

                  • Created:
                    Updated: