Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

$filter parsing throws error for some filters #29

Description

@htammen

I wrote a little script to generate the ast for all of the sample $filter strings from chapter 4.5 of http://www.odata.org/documentation/odata-version-2-0/uri-conventions/#. When running the script I get errors for some of the filters, e.g. $filter=Price add 5 gt 10

odata-parser.js:5341
        throw new this.SyntaxError(
        ^
SyntaxError: Expected "and" or "or" but "g" found.

Have a look at the commented lines of the attached script for all erroneous filters.

Regards Helmut
index.js.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions