Add support for CASE operator.
This commit is contained in:
parent
3367df247c
commit
4f9323ddca
18 changed files with 243 additions and 272 deletions
|
|
@ -62,19 +62,19 @@ func (n *numericInterfaceImpl) LtEqL(literal interface{}) BoolExpression {
|
|||
}
|
||||
|
||||
func (n *numericInterfaceImpl) Add(expression NumericExpression) NumericExpression {
|
||||
return newBinaryNumericExpression(n.parent, expression, " + ")
|
||||
return newBinaryNumericExpression(n.parent, expression, "+")
|
||||
}
|
||||
|
||||
func (n *numericInterfaceImpl) Sub(expression NumericExpression) NumericExpression {
|
||||
return newBinaryNumericExpression(n.parent, expression, " - ")
|
||||
return newBinaryNumericExpression(n.parent, expression, "-")
|
||||
}
|
||||
|
||||
func (n *numericInterfaceImpl) Mul(expression NumericExpression) NumericExpression {
|
||||
return newBinaryNumericExpression(n.parent, expression, " * ")
|
||||
return newBinaryNumericExpression(n.parent, expression, "*")
|
||||
}
|
||||
|
||||
func (n *numericInterfaceImpl) Div(expression NumericExpression) NumericExpression {
|
||||
return newBinaryNumericExpression(n.parent, expression, " / ")
|
||||
return newBinaryNumericExpression(n.parent, expression, "/")
|
||||
}
|
||||
|
||||
//---------------------------------------------------//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue