Skip to content

empty filter should result in "True" (or fail) #33

Description

@tyrasd

an empty filter is currently parsed into an empty string

ohsome_filter_to_sql("")
('', ())

This cannot be used as is in a WHERE clause of a sql query, as the resulting query would result in something like SELECT … FROM … WHERE ; which is not valid SQL. It would be better if an empty filter string would result in a boolean expression equivalent to true (or alternatively fail to validate as a valid filter string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions