#11722: Query lookups that reference an F() expression produce invalid sql -------------------------------------+------------------------------------- Reporter: plandry@… | Owner: Type: Bug | Status: new Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: F() expression | Needs documentation: 0 query sql | Patch needs improvement: 1 Has patch: 1 | UI/UX: 0 Needs tests: 1 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by mumino): invalid sql generation happens for iendswith, istartswith, icontains, iexact for postgreql. similar problems arise in SQLite. I think other backends have same problem too. this pull request has a fix. https://github.com/django/django/pull/1945 on the other hand, F objects has another issue related with here. https://code.djangoproject.com/ticket/16731 because of it istartswith, icontains, iendswith still don't produce correct SQL. but they produce valid SQL now. -- Ticket URL: <https://code.djangoproject.com/ticket/11722#comment:18> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/078.00cd835051546ab60271214d731ae237%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.