Skip to content

Add ability for sqlite to handle array parameters #762

@pleerock

Description

@pleerock

I want IN operator to work correctly with array params, for example:

SELECT * FROM table WHERE table.id IN ($1)

I would like $1 to be:

$1 = [1, 2, 3, 4] or $1 = ['firstId', 'secondId', 'thridId', '...']

So, it will generate query like SELECT * FROM table WHERE table.id IN (1, 2, 3, 4) where all id from the array are escaped.

Mysql driver handles such parameters very nicely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions