Adding a value to a Field greater than the max_length results in null values #148
Closed
8 tasks done
Labels
question
Further information is requested
First Check
Commit to Help
Example Code
Description
I have created a SQLModel with a string column and max_length constraint. If I add a value greater than the
![Screenshot 2021-10-28 at 9 34 27 PM](https://user-images.githubusercontent.com/7579214/139293488-8a3a6b40-b787-4189-9d16-42a10c2a8011.jpg)
max_length
constraint, instead of raising a validation error, the value is being set as None which isn't the desired behaviour, I have tried persisting the row to the db and I get an empty value there too (check third value).Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
Python 3.8.10
Additional Context
No response
The text was updated successfully, but these errors were encountered: