Skip to content

Commit

Permalink
expression: remove useless code (pingcap#13439)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhuang2016 authored and XiaTianliang committed Dec 21, 2019
1 parent dca8644 commit 443866b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions expression/simple_rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ func FindFieldNameIdxByColName(names []*types.FieldName, colName string) int {
}

func (sr *simpleRewriter) rewriteColumn(nodeColName *ast.ColumnNameExpr) (*Column, error) {
if sr.names != nil {
idx, err := FindFieldName(sr.names, nodeColName.Name)
if idx >= 0 && err == nil {
return sr.schema.Columns[idx], nil
}
return nil, errBadField.GenWithStackByArgs(nodeColName.Name.Name.O, "expression")
}
idx, err := FindFieldName(sr.names, nodeColName.Name)
if idx >= 0 && err == nil {
return sr.schema.Columns[idx], nil
Expand Down

0 comments on commit 443866b

Please sign in to comment.