Skip to content

NOT IN comparator is not working with Criteria API #177

@rjaros

Description

@rjaros

This code:

client.delete().from("tab").matching(where("id").notIn(1, 2))

generates SQL statement without any conditions:

DELETE FROM tab

When combined with other conditions, an incorrect SQL statement is generated:

client.delete().from("tab").matching(where("pole").`is`(1).and("id").notIn(1, 2))

generates:

DELETE FROM tab WHERE tab.pole = $1 AND 

The IN comparator is working fine.

Metadata

Metadata

Assignees

Labels

for: external-projectFor an external project and not something we can fixtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions