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)

models.py (168 bytes ) - added by Alberto Misail 7 years ago.
Models file
tests.py (467 bytes ) - added by Alberto Misail 7 years ago.
Tests file

Download all attachments as: .zip

Change History (4)

by Alberto Misail, 7 years ago

Attachment: models.py added

Models file

comment:1 by Alberto Misail, 7 years ago

Owner: changed from nobody to Alberto Misail
Status: newassigned

by Alberto Misail, 7 years ago

Attachment: tests.py added

Tests file

comment:2 by Simon Charette, 7 years ago

Resolution: invalid
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top