#10438: Rowcount for updates not correct with MySQL
---------------------------------------------------+------------------------
Reporter: mtredinnick | Owner: nobody
Status: new | Milestone: 1.1
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by mtredinnick):
* milestone: => 1.1
Comment:
The issue at hand here is that MySQL returns the number of rows
'''changed''' by an update, not the number of rows that were attempted to
be updated, as the other databases do. We need to work around this
somehow, as it's necessary to detect whether
`Model.save(force_update=True)` worked or not.
Possibly needs another MySQL-specific workaround to select the number of
rows that might have been affected (a little racy, but that might just be
the way it goes).
--
Ticket URL: <http://code.djangoproject.com/ticket/10438#comment:3>
Django <http://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 this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---