]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Bump minimum MySQL version to 5.0.2; use all-numeric server version
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Aug 2020 04:58:56 +0000 (00:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Aug 2020 16:18:07 +0000 (12:18 -0400)
commitfc97854f69ee589774627f14ce78bb8a1bbb3236
tree0a0fdb466d860e833461a06b25c4bc05d45be2ba
parent8a274e0058183cebeb37d3a5e7903209ce5e7c0e
Bump minimum MySQL version to 5.0.2; use all-numeric server version

MySQL dialect's server_version_info tuple is now all numeric.  String
tokens like "MariaDB" are no longer present so that numeric comparison
works in all cases.  The .is_mariadb flag on the dialect should be
consulted for whether or not mariadb was detected.   Additionally removed
structures meant to support extremely old MySQL versions 3.x and 4.x;
the minimum MySQL version supported is now version 5.0.2.

In addition, as the "MariaDB" name goes away from server version,
expand upon the change in I330815ebe572b6a9818377da56621397335fa702
to support the name "mariadb" throughout the dialect and test suite
when mariadb-only mode is used.    This changes the "name" field
on the MariaDB dialect to "mariadb", which then implies a change
throughout the testing requirements system as well as all the
dialect-specific DDL argument names such as "mysql_engine" is
now specified as "mariadb_engine", etc.   Make use of the
recent additions to test suite URL provisioning so that we can
force MariaDB databases to have a "mariadb-only" dialect which
allows us to test this name change fully.

Update documentation to refer to MySQL / MariaDB explicitly
as well as indicating the "mariadb_" prefix used for options.

It seems likely that MySQL and MariaDB version numbers are going to
start colliding at some point so having the "mariadb" name
be available as a totally separate dialect name should give us
some options in this regard.

Currently also includes a date related fix to a test for
the postgresql dialect that was implicitly assuming a
non-UTC timezone

Fixes: #4189
Change-Id: I00e76d00f62971e1f067bd61915fa6cc1cf64e5e
20 files changed:
doc/build/changelog/unreleased_14/4189.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/mariadb.py
lib/sqlalchemy/dialects/mysql/provision.py
lib/sqlalchemy/testing/provision.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/schema.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_dialect.py
test/dialect/mysql/test_for_update.py
test/dialect/mysql/test_on_duplicate.py
test/dialect/mysql/test_query.py
test/dialect/mysql/test_reflection.py
test/dialect/mysql/test_types.py
test/dialect/postgresql/test_dialect.py
test/orm/test_naturalpks.py
test/orm/test_query.py
test/requirements.py
test/sql/test_insert_exec.py
test/sql/test_types.py