Skip to content
Snippets Groups Projects
Unverified Commit e8699dd8 authored by ou yuanning's avatar ou yuanning Committed by GitHub
Browse files

Fix INTEGER_DIV bug (#2839)

parent 81587825
No related branches found
No related tags found
No related merge requests found
......@@ -457,8 +457,7 @@ func buildBinaryExpr(astExpr *tree.BinaryExpr, ctx CompilerContext, query *Query
case tree.DIV:
return getFunctionExprByNameAndAstExprs("/", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg)
case tree.INTEGER_DIV:
// todo confirm what is the difference from tree.DIV
return getFunctionExprByNameAndAstExprs("/", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg)
return getFunctionExprByNameAndAstExprs("div", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg)
}
return nil, false, errors.New(errno.SyntaxErrororAccessRuleViolation, fmt.Sprintf("'%v' is not support now", astExpr))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment