Skip to content

Commit

Permalink
reindent the tab
Browse files Browse the repository at this point in the history
  • Loading branch information
sim41 committed Nov 22, 2019
1 parent f37173a commit 6333e32
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1328,17 +1328,17 @@ AlterTableSpec:
}
$$ = op
}
| "CONVERT" "TO" CharsetKw "DEFAULT" OptCollate
{
op := &ast.AlterTableSpec{
Tp: ast.AlterTableOption,
Options:[]*ast.TableOption{{Tp: ast.TableOptionCharset, Default: true}},
}
if $5 != "" {
op.Options = append(op.Options, &ast.TableOption{Tp: ast.TableOptionCollate, StrValue: $5.(string)})
}
$$ = op
}
| "CONVERT" "TO" CharsetKw "DEFAULT" OptCollate
{
op := &ast.AlterTableSpec{
Tp: ast.AlterTableOption,
Options:[]*ast.TableOption{{Tp: ast.TableOptionCharset, Default: true}},
}
if $5 != "" {
op.Options = append(op.Options, &ast.TableOption{Tp: ast.TableOptionCollate, StrValue: $5.(string)})
}
$$ = op
}
| "ADD" ColumnKeywordOpt IfNotExists ColumnDef ColumnPosition
{
$$ = &ast.AlterTableSpec{
Expand Down

0 comments on commit 6333e32

Please sign in to comment.