]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't warn on multi delete rowcount if supports_sane_multi is False
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 May 2019 22:07:06 +0000 (18:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 May 2019 21:29:20 +0000 (17:29 -0400)
commit7c4ba0e8ff299031d24e9cd1f4aea654e064f934
tree23650ea6ff3b34dc5543d4f048a42c5ca9896f6f
parentb058e7ae99890f981c8df016a314283a2a3f68a2
Don't warn on multi delete rowcount if supports_sane_multi is False

Fixed an issue where the "number of rows matched" warning would emit even if
the dialect reported "supports_sane_multi_rowcount=False", as is the case
for psycogp2 with ``use_batch_mode=True`` and others.

Fixes: #4661
Change-Id: I93aaf7f597b6083e860ab3cbcd620ba5621c57a8
(cherry picked from commit aa94afcdaf4faeacf13836de2475954e06a7fb67)
doc/build/changelog/unreleased_13/4661.rst [new file with mode: 0644]
lib/sqlalchemy/orm/persistence.py
test/orm/test_unitofworkv2.py