Thanks to visit codestin.com
Credit goes to github.com

Skip to content

select expressions do not support comparison to true or false #591

@ithinkihaveacat

Description

@ithinkihaveacat

It's not possible to select ... where foo = true or select ... where foo = false.

That is,

data = [
  { "id": 1, "foo": true },
  { "id": 2, "foo": false }
];

return select * from data where foo = true;

does not return any results.

Replacing the expression with id = 1 returns a single result, as expected.

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