Skip to content

serverdb: Fix Any() filter on boolean attributes#445

Merged
kofrezo merged 2 commits into
mainfrom
dk_fix_any_filter_for_boolean
Jun 3, 2026
Merged

serverdb: Fix Any() filter on boolean attributes#445
kofrezo merged 2 commits into
mainfrom
dk_fix_any_filter_for_boolean

Conversation

@kofrezo
Copy link
Copy Markdown
Contributor

@kofrezo kofrezo commented Jun 3, 2026

Booleans have no value column; presence of a row means true. Without
this, Any() built an IN (...) comparison against a non-existent column,
making queries like Any(True, False) fail instead of matching servers.

kofrezo added 2 commits June 3, 2026 10:12
- Test simple truth and false
- Test boolean attributes with Any filter
Booleans have no value column; presence of a row means true. Without
this, Any() built an IN (...) comparison against a non-existent column,
making queries like Any(True, False) fail instead of matching servers.
@kofrezo kofrezo requested a review from abeglu June 3, 2026 08:49
@kofrezo kofrezo self-assigned this Jun 3, 2026
@kofrezo kofrezo added the bug label Jun 3, 2026
@kofrezo
Copy link
Copy Markdown
Contributor Author

kofrezo commented Jun 3, 2026

Fixes errors when using Any on boolean attributes:

ProgrammingError
column sub.value does not exist
LINE 1: ...ver_id AND sub.attribute_id = 'no_monitoring' AND sub.value ...

@kofrezo kofrezo merged commit a0f4283 into main Jun 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants