Skip to content

Commit

Permalink
Update ddl/ddl_api.go
Browse files Browse the repository at this point in the history
Co-authored-by: tangenta <tangenta@126.com>
  • Loading branch information
CbcWestwolf and tangenta authored Apr 7, 2022
1 parent 388d507 commit a289bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/ddl_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func columnDefToCol(ctx sessionctx.Context, offset int, colDef *ast.ColumnDef, o
return col, constraints, nil
}

// getFuncCallDefaultValue
// getFuncCallDefaultValue gets the default column value of function-call expression.
func getFuncCallDefaultValue(col *table.Column, option *ast.ColumnOption, expr *ast.FuncCallExpr) (interface{}, bool, error) {
switch expr.FnName.L {
case ast.Rand:
Expand Down

0 comments on commit a289bdb

Please sign in to comment.