Opened 7 years ago
Closed 7 years ago
#29194 closed Bug (invalid)
Saving entry into db fails when value of a textfield type parameter is too big (more than 6000 char)
Reported by: | Alberto Misail | Owned by: | Alberto Misail |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.11 |
Severity: | Normal | Keywords: | TextField |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When a model has a textfield type parameter, the value of this parameter should be a string of any size.
Nonetheless, when trying to insert a new entry where this string is longer than 6000 chars it fails throwing an invalid precision value.
Note that when trying with small sizes it works
I am using a MS SQL database, Django 1.11.9 and Python 3.5.2
Find attached the models file and the test cases that show the issue
Attachments (2)
Change History (4)
by , 7 years ago
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Hello Alberto!
Thank you for your report but unfortunately Django doesn't ship with a MSSQL backend.
Since it's unlikely any of the default backends (SQLite, PostgreSQL, MySQL, Oracle) exhibit such behavior you should report this issue to the third-party app providing the database backend you are using instead.
Models file