Skip to content

Question: How to create a select statement with null values as parameters #2411

Open
@haexhub

Description

@haexhub

Hi there,

I've got a question regarding select statements from javascript with an sqlite database, where I can have null values as parameter.

await database.select('SELECT * FROM table WHERE something = $1', [null]);

This is not working. How can this be done?
In Sqlite the operator should be IS NULL

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions