Skip to content

Commit

Permalink
fix comment typo (pingcap#5721)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccxj authored and XuHuaiyu committed Jan 26, 2018
1 parent 24333b3 commit 5690313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plan/expression_rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (er *expressionRewriter) handleCompareSubquery(v *ast.CompareSubqueryExpr)
if er.err != nil {
return v, true
}
// Only (a,b,c) = all (...) and (a,b,c) != any () can use row expression.
// Only (a,b,c) = any (...) and (a,b,c) != all (...) can use row expression.
canMultiCol := (!v.All && v.Op == opcode.EQ) || (v.All && v.Op == opcode.NE)
if !canMultiCol && (getRowLen(lexpr) != 1 || np.Schema().Len() != 1) {
er.err = ErrOperandColumns.GenByArgs(1)
Expand Down

0 comments on commit 5690313

Please sign in to comment.