Skip to content

Commit

Permalink
reindent the tab
Browse files Browse the repository at this point in the history
  • Loading branch information
sim41 committed Oct 8, 2019
1 parent 83051c6 commit 01c0cd0
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 @@ -1279,17 +1279,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 01c0cd0

Please sign in to comment.