]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Docuemnt current workarounds for MySQL TIMESTAMP
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jun 2020 18:35:22 +0000 (14:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jun 2020 18:57:47 +0000 (14:57 -0400)
commit82d2d3e3f5d4887ed8ed944bcfb563e6e848d59c
tree2d2ca8918bf78573cff7628040bcd3d4c8572886
parent4b69f0debf6fc1c5e6279fa9029059456462b382
Docuemnt current workarounds for MySQL TIMESTAMP

MySQL 8 no longer generates the DEFAULT or ON UPDATE
clauses for TIMESTAMP by default, hence users will begin to hit
this regularly.  add warnings that this non-standard SQL is not
accommodated by server_onupdate and docuemnt the workaround
used in issues such as #4652.

Fixes: #5427
Change-Id: Ie048dcc91c648dd0b80ed395208c1d665b6c968b
(cherry picked from commit a2c2dcaf082ecf97c7e06cd23adf5a614b5a4a2b)
doc/build/core/defaults.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/sql/schema.py