Remove unnecessary operators.
This commit is contained in:
parent
6805462d10
commit
d00167cbba
6 changed files with 15 additions and 47 deletions
|
|
@ -2,20 +2,5 @@ package postgres
|
|||
|
||||
import "github.com/go-jet/jet/internal/jet"
|
||||
|
||||
// --------- Arithmetic operators -------------//
|
||||
|
||||
//var MINUSi = jet.MINUSi
|
||||
var MINUSf = jet.MINUSf
|
||||
|
||||
//----------- Logical operators ---------------//
|
||||
|
||||
var NOT = jet.NOT
|
||||
var BIT_NOT = jet.BIT_NOT
|
||||
|
||||
func MINUSi(intExp IntegerExpression) IntegerExpression {
|
||||
if intLit, ok := intExp.(jet.LiteralExpression); ok {
|
||||
intLit.SetConstant(true)
|
||||
}
|
||||
|
||||
return intExp
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue