Skip to content

Where clauses with variables #435

@flintforge

Description

@flintforge

I'd like to bring your attention on the fact that where clauses will only resolve for constants.
The following works:

select a_field from a_table where a_field='a value'; 

but in this case

select a_field from a_table where a_field=a_func.parameter;

query parameters needs to be replaced by a value, from execution state, as mentioned here:

// add a dummy value if this is query parameter, the actual value

This is limitation of the current implementation that should be mentioned here:

/// <strong>Warning</strong>: Currently only simple conditions are supported, see below for examples. Other kinds of conditions, like JSON attribute filter e.g. `where json_col->>'key' = 'value'`, are not supported yet.

Thanks for any suggestion or direction to look from here in order to overcome that limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions