]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rename MySQL dml.insert().values to .inserted
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Sep 2017 01:34:39 +0000 (21:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Sep 2017 01:41:13 +0000 (21:41 -0400)
commit70be7312f10a2241cde3e6472af15ef5a9ae222a
tree7e7e28baf1a5fc7d2d07c6249b2b177abe770ef8
parent5ae984b946f87cc485c29c4c947a8649d4c4c422
Rename MySQL dml.insert().values to .inserted

Changed the name of the ``.values`` attribute of the new MySQL
INSERT..ON DUPLICATE KEY UPDATE construct to ``.inserted``, as
:class:`.Insert` already has a method called :meth:`.Insert.values`.
The ``.inserted`` attribute ultimately renders the MySQL ``VALUES()``
function.

Change-Id: I8da8e30a3077698385a4b77e2c2032e2d1ff10b2
Fixes: #4072
doc/build/changelog/migration_12.rst
doc/build/changelog/unreleased_12/4072.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/dml.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_on_duplicate.py