#24012: models.UUIDfield fails on Oracle backend
-------------------------------------+-------------------------------------
     Reporter:  JorisBenschop        |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  oracle,              |  Unreviewed
  models.UUIDfield                   |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by JorisBenschop):

 THe thing is: I think that if I would change
 
[https://github.com/django/django/blob/108b8bf852c76855ed98f5abe55db1da845598e7/django/db/backends/oracle/base.py#L326
 this code] from
 {{{
 def convert_uuidfield_value(self, value, field):
     if value is not None:
         value = uuid.UUID(value)
     return value
 }}}

 {{{
 def convert_uuidfield_value(self, value, field):
     if value is not None:
         value = uuid.UUID(bytes=value)
     return value
 }}}
 the problem would be solved

 What would the collateral damage of such a change be?

--
Ticket URL: <https://code.djangoproject.com/ticket/24012#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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.306407b74623eb6d27e938ff57cc83e3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to