Remove unnecessary operators.
This commit is contained in:
parent
6805462d10
commit
d00167cbba
6 changed files with 15 additions and 47 deletions
|
|
@ -99,8 +99,3 @@ func TestIntExpressionIntExp(t *testing.T) {
|
|||
assertClauseSerialize(t, IntExp(table1ColFloat.ADD(table2ColFloat)).ADD(Int(11)),
|
||||
"((table1.col_float + table2.col_float) + $1)", int64(11))
|
||||
}
|
||||
|
||||
func TestIntExpression_MINUSi(t *testing.T) {
|
||||
assertClauseSerialize(t, MINUSi(table2ColInt), "(- table2.col_int)")
|
||||
assertClauseSerialize(t, MINUSi(Int(3)), "(- $1)", int64(3))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,18 +2,6 @@ package jet
|
|||
|
||||
import "errors"
|
||||
|
||||
// --------- Arithmetic operators -------------//
|
||||
|
||||
// MINUSi changes the sign of the intExp.
|
||||
func MINUSi(intExp IntegerExpression) IntegerExpression {
|
||||
return newPrefixIntegerOperator(intExp, "-")
|
||||
}
|
||||
|
||||
// MINUSi changes the sign of the intExp.
|
||||
func MINUSf(floatExp FloatExpression) FloatExpression {
|
||||
return newPrefixFloatOperator(floatExp, "-")
|
||||
}
|
||||
|
||||
//----------- Logical operators ---------------//
|
||||
|
||||
// NOT returns negation of bool expression result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue