Skip to content

Ensure QueryBuilder interface detects empty enumerables in query AST #2

@ngetahun

Description

@ngetahun

The Arel builders work well but because SOQL is not SQL conformant, certain queries don't work

For example:

SELECT Id from Account WHERE 1=0 AND SomeField=true

Although this is a valid SQL query, SOQL cannot parse this correctly. One reason why QueryBuilder injects 1=0 is when an empty enumerable is given as argument. To solve this we should validate empty enumerable during AST build.

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