#33010: id to uuid type casting bug in Django 2.2
-------------------------------------+-------------------------------------
               Reporter:  Stygmate   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  2.2
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 in some case Django try to convert simple incremental integer id to UUID.

 this problem was encountered while trying django-computedfields lib.
 here is the test project, initialy created to check if the bug come from
 django-computedfields: https://github.com/stygmate/dcftest
 (check the models.py in dcfapp)
 when doing:
 ModelA.objects.filter(modelb=some_modelb_instance)
 the SQL query generated is casting id to uuid resulting in
 0000....-.....-0001 and in a query error.

 Things seems to work well with django 3.2, can someone backport the
 correction to django 2.2 ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33010>
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/051.abd1112bbaf3ec0aa1c9acd12a5d51ff%40djangoproject.com.

Reply via email to