Skip to content

Commit

Permalink
Merge pull request #54 from dutta-partha/support_mul_op
Browse files Browse the repository at this point in the history
Support multiplication operator processing
  • Loading branch information
zhengchun authored Oct 10, 2020
2 parents 0875c03 + a625971 commit 7ceb193
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,15 @@ func (b *builder) processOperatorNode(root *operatorNode) (query, error) {
}
var qyOutput query
switch root.Op {
case "+", "-", "div", "mod": // Numeric operator
case "+", "-", "*", "div", "mod": // Numeric operator
var exprFunc func(interface{}, interface{}) interface{}
switch root.Op {
case "+":
exprFunc = plusFunc
case "-":
exprFunc = minusFunc
case "*":
exprFunc = mulFunc
case "div":
exprFunc = divFunc
case "mod":
Expand Down

0 comments on commit 7ceb193

Please sign in to comment.