#27813: BinaryField type inconsistent between sqlite3 (bytes) and postgresql
(memoryview)
-------------------------------------+-------------------------------------
Reporter: Antonio Terceiro | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 1.10
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by bmatschke):
When using BinaryField as a primary key, it leads to a bug.
For example deleting such a table raises a
{{{
TypeError: '<' not supported between instances of 'memoryview' and
'memoryview'
}}}
Besides, the resulting type should be consistent, independent on the
underlying database.
--
Ticket URL: <https://code.djangoproject.com/ticket/27813#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.a729f37fcd7a2de3e723a8bb8ec0afdf%40djangoproject.com.