Skip to content

Conversation

@egormanga
Copy link
Contributor

Description of Changes

Ditto #2843.

enum TestKind {
	OptionA,
	OptionB,
}

#[table(name=test)]
struct Test {
	kind: TestKind,
}
SELECT * FROM test WHERE kind = 'OptionB';

This PR implements simple enum support for = and != operators (subject to further expansion).

Note: still doesn't work with enum_stringify case conversion OOTB. No clue how to implement that yet.

API and ABI breaking changes

None.

Expected complexity level and risk

1.

Testing

  • Manual testing using custom enum columns.
  • Needs unit tests. I leave this open for contributions or as an exercise to the employees.

@bfops
Copy link
Collaborator

bfops commented Oct 21, 2025

Thank you for opening this! We will work toward getting this reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants