Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking if list is null leads to compile error #556

Open
3efischer opened this issue Aug 23, 2023 · 0 comments
Open

Checking if list is null leads to compile error #556

3efischer opened this issue Aug 23, 2023 · 0 comments
Labels

Comments

@3efischer
Copy link

Failing ANSI SQL

CREATE TABLE transactionEntity (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    transactionDate INTEGER AS ZonedDateTime NOT NULL,
    transactionType TEXT NOT NULL,
    accountId INTEGER,
    categoryId INTEGER,
);

SELECT *
FROM transactionEntity
WHERE :categoryIds IS NOT NULL AND categoryId IN :categoryIds;

Description

If :categoryIds is a list, this leads to an error since the first appearance is interpreted as a Long while the second is interpreted as Collection<Long?>.

@3efischer 3efischer added the bug label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant