Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Indexes don't handle negation correctly #262

Closed
@erizocosmico

Description

@erizocosmico

Because FOO != 1 gets translated to NOT (FOO = 1), we can use FOO = 1 in the index. Afterwards, the condition NOT (FOO = 1) is evaluated. Because it is false, the result will be 0 rows.

Therefore, all queries using an index and != or NOT IN will have 0 results.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions