summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-09-08 21:34:39 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-09-08 21:41:13 -0400
commit70be7312f10a2241cde3e6472af15ef5a9ae222a (patch)
tree7e7e28baf1a5fc7d2d07c6249b2b177abe770ef8 /doc
parent5ae984b946f87cc485c29c4c947a8649d4c4c422 (diff)
downloadsqlalchemy-70be7312f10a2241cde3e6472af15ef5a9ae222a.tar.gz
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
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/migration_12.rst2
-rw-r--r--doc/build/changelog/unreleased_12/4072.rst9
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/build/changelog/migration_12.rst b/doc/build/changelog/migration_12.rst
index 4cfaf38c4..87c08dc21 100644
--- a/doc/build/changelog/migration_12.rst
+++ b/doc/build/changelog/migration_12.rst
@@ -1336,7 +1336,7 @@ This :class:`~.expression.Insert` subclass adds a new method
values(id='some_id', data='some data to insert')
on_conflict_stmt = insert_stmt.on_duplicate_key_update(
- data=stmt.values.data,
+ data=stmt.inserted.data,
status='U'
)
diff --git a/doc/build/changelog/unreleased_12/4072.rst b/doc/build/changelog/unreleased_12/4072.rst
new file mode 100644
index 000000000..3e5e83f24
--- /dev/null
+++ b/doc/build/changelog/unreleased_12/4072.rst
@@ -0,0 +1,9 @@
+.. change::
+ :tags: bug, mysql
+ :tickets: 4072
+
+ 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. \ No newline at end of file