jetstreamapp / soql-parser-js

Javascript SOQL parser
https://jetstreamapp.github.io/soql-parser-js/
MIT License
77 stars 20 forks source link

COMPOSE: Passing in string for value for array operators produces invalid query #107

Closed paustint closed 2 years ago

paustint commented 4 years ago

Description

The following where clause produces an invalid query. Since the operator is IN, it is expected that the output should be WHERE IN ('foo'), but what actually gets produced is WHERE IN 'foo', which is not a valid query based on syntax.

    const whereClause: WhereClause = {
      left: {
        operator: 'IN,
        field: 'Id',
        value: 'foo',
        literalType: 'STRING'
      },
    };