aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-09-26 13:36:16 -0700
committervlad <vlad@driver.xyz>2017-09-26 13:36:16 -0700
commitcd1e685b22db2c69ad3d418b6b24b65fd63472fa (patch)
tree8452f8ad4933ee070552af4ca7d21b32376effee
parent41aa4fb74ab5a2ec6521f067fe82472986dfdbd3 (diff)
downloadrest-query-cd1e685b22db2c69ad3d418b6b24b65fd63472fa.tar.gz
rest-query-cd1e685b22db2c69ad3d418b6b24b65fd63472fa.tar.bz2
rest-query-cd1e685b22db2c69ad3d418b6b24b65fd63472fa.zip
Make number filter parsing attempt first, because number parsers are more specific.
Otherwise fails for: https://records-processing.stable.sand.driver.network/rep-api/v1/document?filters=recordId+EQ+1&pageNumber=1&pageSize=9999 with: ERROR: operator does not exist: bigint = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 782
-rw-r--r--src/main/scala/xyz/driver/pdsuicommon/parsers/SearchFilterParser.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/parsers/SearchFilterParser.scala b/src/main/scala/xyz/driver/pdsuicommon/parsers/SearchFilterParser.scala
index 3238ebc..7e86eae 100644
--- a/src/main/scala/xyz/driver/pdsuicommon/parsers/SearchFilterParser.scala
+++ b/src/main/scala/xyz/driver/pdsuicommon/parsers/SearchFilterParser.scala
@@ -94,7 +94,7 @@ object SearchFilterParser {
private val binaryAtomParser: Parser[SearchFilterExpr.Atom.Binary] = P(
dimensionParser ~ whitespaceParser ~ (
(numericOperatorParser.! ~/ whitespaceParser ~/ numberParser.!) |
- (commonOperatorParser.! ~/ whitespaceParser ~/ AnyChar.rep(min = 1).!)
+ (commonOperatorParser.! ~/ whitespaceParser ~/ AnyChar.rep(min = 1).!)
) ~ End
).map {
case BinaryAtomFromTuple(atom) => atom