Skip to content

orm: handle inserting enum fields#26680

Merged
JalonSolov merged 2 commits into
vlang:masterfrom
squidink7:orm-enums
Mar 6, 2026
Merged

orm: handle inserting enum fields#26680
JalonSolov merged 2 commits into
vlang:masterfrom
squidink7:orm-enums

Conversation

@squidink7

Copy link
Copy Markdown
Contributor

fixes #26677
Inserting structs with enum fields using ORM's functional syntax caused a panic, this PR adds proper handling for this scenario.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8377457df

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread vlib/orm/orm_func.v Outdated
@squidink7 squidink7 mentioned this pull request Mar 3, 2026
@JalonSolov JalonSolov merged commit 6675006 into vlang:master Mar 6, 2026
78 checks passed
cestef pushed a commit to cestef/v that referenced this pull request Mar 9, 2026
* Handle inserting enum fields in ORM

* Implement enum retrieval from db
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.

ORM panics with enums

3 participants