#34060: Creating CheckConstraint on JSONField with __exact lookup on key
transforms
crashes on Oracle.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: raydeal
Type: Bug | Status: assigned
Component: Database layer | Version: 4.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by raydeal):
This error is because JSON is stored in NCLOB database type but according
to Oracle documentation:
Oracle Database does not support constraints on columns or attributes
whose type is a LOB, with the following exception: NOT NULL constraints
are supported for a LOB column or attribute.
The exact check should be implemented differently to work with JSON in
LOB. I am working on it.
--
Ticket URL: <https://code.djangoproject.com/ticket/34060#comment:8>
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/0107018d173ddf9a-32497ffb-9f48-4af0-bf02-161e7b3d3419-000000%40eu-central-1.amazonses.com.