[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: |
|
||||||||
| Description |
|
We'll introduce a new token type "create_field" in sql_yacc.yy:
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:
The rule "column_def" will further return the value created by its "field_spec" part. |