[MDEV-8093] sql_yacc.yy: add %type create_field for field_spec and column_def Created: 2015-05-04  Updated: 2016-01-11  Resolved: 2015-11-25

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.2.0

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: refactoring

Issue Links:
Blocks
blocks MDEV-8094 sql_yacc.yy: get rid of the rules "op... Open

 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.


Generated at Thu Feb 08 07:24:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.