Skip to content

Commit

Permalink
Merge pull request #13 from jon-whit/master
Browse files Browse the repository at this point in the history
Add LT, LTE, GT, GTE comparitors for String type
  • Loading branch information
a8m authored May 17, 2019
2 parents 476ba5d + fed44c1 commit e9194e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rql.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (p *Parser) parseField(sf reflect.StructField) {
filterOps = append(filterOps, EQ, NEQ)
case reflect.String:
f.ValidateFn = validateString
filterOps = append(filterOps, EQ, NEQ, LIKE)
filterOps = append(filterOps, EQ, NEQ, LT, LTE, GT, GTE, LIKE)
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
f.ValidateFn = validateInt
f.CovertFn = convertInt
Expand Down

0 comments on commit e9194e1

Please sign in to comment.