Skip to content

Commit 3169725

Browse files
committed
RHINENG-21424: fix typo in filter operator names
1 parent 17f7e34 commit 3169725

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

manager/controllers/filter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const (
2222
OpNeq = "neq"
2323
OpGt = "gt"
2424
OpLt = "lt"
25-
OpGeq = "geq"
26-
OpLeq = "leq"
25+
OpGte = "gte"
26+
OpLte = "lte"
2727
OpBetween = "between"
2828
OpIn = "in"
2929
OpNotIn = "notin"
@@ -106,9 +106,9 @@ func (t *FilterData) ToWhere(fieldName string, attributes database.AttrMap) (str
106106
return fmt.Sprintf("%s > ? ", attributes[fieldName].DataQuery), values, nil
107107
case OpLt:
108108
return fmt.Sprintf("%s < ? ", attributes[fieldName].DataQuery), values, nil
109-
case OpGeq:
109+
case OpGte:
110110
return fmt.Sprintf("%s >= ? ", attributes[fieldName].DataQuery), values, nil
111-
case OpLeq:
111+
case OpLte:
112112
return fmt.Sprintf("%s <= ? ", attributes[fieldName].DataQuery), values, nil
113113
case OpBetween:
114114
return fmt.Sprintf("%s BETWEEN ? AND ? ", attributes[fieldName].DataQuery), values, nil

0 commit comments

Comments
 (0)