]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accommodate value of None for ON DUPLICATE KEY UPDATE
authorLukas Banic <luko@lingea.cz>
Mon, 10 Jun 2019 15:24:53 +0000 (11:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Jun 2019 17:31:41 +0000 (13:31 -0400)
commitd409d255f91a90da37f615f8956d7ec51d008707
treec086799c71106d4f5ab83b8aac089a21cc06df37
parentaede49e4e1e3219600feec777e6e60ef287e8906
Accommodate value of None for ON DUPLICATE KEY UPDATE

Fixed bug where MySQL ON DUPLICATE KEY UPDATE would not accommodate setting
a column to the value NULL.  Pull request courtesy Lukáš Banič.

Fixes: #4715
Closes: #4716
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4716
Pull-request-sha: bfad6e6bdfb7d6dd5176deaf30d875f3d0f15e06

Change-Id: Ia8831cc171d131bf3824be8db4fd1d231231bba3
(cherry picked from commit 59e9276f04beef4459571cba4226f9d4eaef6be9)
doc/build/changelog/unreleased_13/4715.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_on_duplicate.py