Skip to content

Raise error for invalid fields in sqlmodel_update method#1670

Closed
JusticeBrains wants to merge 2 commits intofastapi:mainfrom
JusticeBrains:main
Closed

Raise error for invalid fields in sqlmodel_update method#1670
JusticeBrains wants to merge 2 commits intofastapi:mainfrom
JusticeBrains:main

Conversation

@JusticeBrains
Copy link

Added an AttributeError in SQLModel.sqlmodel_update when attempting to set a field that does not exist on the model. This improves error visibility and prevents silent failures when invalid fields are provided.

JusticeBrains and others added 2 commits December 8, 2025 03:51
Added an AttributeError in SQLModel.sqlmodel_update when attempting to set a field that does not exist on the model. This improves error visibility and prevents silent failures when invalid fields are provided.
@YuriiMotov
Copy link
Member

@JusticeBrains, thanks for your interest!

Could you please explain why you think we need this?
Are there any related discussions?
I haven't seen anybody complaining about this behavior and requesting such changes..

This is a breaking change and to accept it we need to have strong argumentation.

@svlandeg svlandeg marked this pull request as draft January 28, 2026 14:21
@github-actions
Copy link
Contributor

Heads-up: this will be closed in 3 days unless there's new activity.

@github-actions
Copy link
Contributor

As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.

@github-actions github-actions bot closed this Feb 28, 2026
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