Skip to content

Pass an array as parameter #70

Open
@wsporto

Description

@wsporto

Hello,

It is possible to pass an array as parameter?
The query bellow returns the error: Error: Operand should contain 1 column(s).

const ids = [1, 2, 3];
return client.query('SELECT * FROM mytable WHERE id in (?)', [ids]);

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