Skip to content

[MockDatabase] Add support for ActiveEnums. - #3261

Closed
yugobzh wants to merge 2 commits into
SeaQL:masterfrom
yugobzh:mock_active_enum
Closed

yugobzh wants to merge 2 commits into
SeaQL:masterfrom
yugobzh:mock_active_enum

Conversation

@yugobzh

@yugobzh yugobzh commented Nov 10, 2026 •

Copy link
Copy Markdown

Summary

Current MockDatabase implementation raises an error (Error: Type("Missing value for column '<column>'")) when enums are used with rs_type = "Enum".

Enums with rs_type = "String" are not affected, which is likely why existing tests didn't catch it.

This PR converts the enum value (Value::Enum) to a Value::String so it can decode the value back correctly (the real row carries text).

Checklist

  • I have read the AI Policy and confirm that this contribution complies with it.
  • I used an LLM to generate this PR description or my replies, and I agree that maintainers may use LLMs to respond and may close this PR without providing a reason. (Deleting this checklist item is also considered agreement to these terms.)

Release Notes

  • Add support for ActiveEnums in MockDatabase.

@Huliiiiii

Copy link
Copy Markdown
Member

Can you explain what changed here?

@yugobzh yugobzh closed this Nov 12, 2026
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.

2 participants