#19299: Foreign keys using to_field and having legitimate empty string values
fail
with NULL errors
-------------------------------------+-------------------------------------
Reporter: evan@… | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by akaariai):
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
The problem is that Oracle does treat '' and None equivalently. And, this
shows in some places of Django.
The fix is likely incorrect as it doesn't check for
connection.features.interprets_empty_strings_as_nulls.
I am marking this as accepted. Haven't tested this but the description
seems correct.
--
Ticket URL: <https://code.djangoproject.com/ticket/19299#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.