#19513: Annotate broken django.db.backends.oracle while updating ----------------------------------------------+-------------------- Reporter: mengzhuo1203@… | Owner: nobody Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+-------------------- An QuerySet operation like: Combination.objects.all().update(tag='TagName')
The structure like: {{{ class Combination: items = ForeignKey(Item) }}} {{{ CombinationManager: def get_query_set(self): qs = super(CombinationManager, self).get_query_set() qs = qs.annotate(price=Sum('items__price')) }}} The SQLite and MySQL runs fine with such structure, not with Oracle, it will encounter "ORA-00913: too many values" -- Ticket URL: <https://code.djangoproject.com/ticket/19513> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.