]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Emit deprecation warning for **kw passed to session.execute()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Sep 2020 14:50:58 +0000 (10:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Sep 2020 14:50:58 +0000 (10:50 -0400)
commitfe6c3605df25d083c20f39fbd176a0c0a6736056
treecd8c1b82ccd2126cc8e80aa683b033a3074e7943
parent96bb6dc56d1da2b4fa30afd08ac4dfa665752913
Emit deprecation warning for **kw passed to session.execute()

Passing keyword arguments to methods such as :meth:`_orm.Session.execute`
to be passed into the :meth:`_orm.Session.get_bind` method is deprecated;
the new :paramref:`_orm.Session.execute.bind_arguments` dictionary should
be passed instead.

Fixes: #5573
Change-Id: I555bda84384dbf6d12ba4483c486f9488be0fa25
doc/build/changelog/unreleased_14/5573.rst [new file with mode: 0644]
lib/sqlalchemy/orm/session.py
test/orm/test_deprecations.py
test/orm/test_session.py