Always use UTC time for the MariaDB/MySQL session (#87583)
This commit is contained in:
parent
c05a7b29e6
commit
db503c0daa
3 changed files with 8 additions and 4 deletions
|
@ -203,9 +203,10 @@ def test_setup_connection_for_dialect_mysql(mysql_version):
|
|||
|
||||
util.setup_connection_for_dialect(instance_mock, "mysql", dbapi_connection, True)
|
||||
|
||||
assert len(execute_args) == 2
|
||||
assert len(execute_args) == 3
|
||||
assert execute_args[0] == "SET session wait_timeout=28800"
|
||||
assert execute_args[1] == "SELECT VERSION()"
|
||||
assert execute_args[2] == "SET time_zone = '+00:00'"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue