]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use the same "current_timestamp" function for both sides of round trip
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 21 Oct 2018 02:20:06 +0000 (22:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 21 Oct 2018 02:23:30 +0000 (22:23 -0400)
commit5a67bd56b01cb90d226f1bd70cf92a94dbc6c351
treea3e70aa109c633f4c85770ebfc8bd89fad51b47b
parentdc21de59cad03b63e8bfc4e55b2457a5b129e582
Use the same "current_timestamp" function for both sides of round trip

this test was using sysdate() and current_timestamp() together
in conjunction with a truncation to DAY, however for four hours
on saturday night (see commit time :) ) these two values will
have a different value if one side is EDT and the other is UTC.

tox does not transmit environment variables including TZ by
default, so even if the server is set up for EDT, running tox
will not set TZ and at least Oracle client seems to use this
value, producing UTC for session time but the database on CI
was configured for EDT, producing EDT for sysdate.

Change-Id: I56602d2402a475a0c4fdf61c1c5fc2618c82f915
(cherry picked from commit ac358a04a7b077602ac668c19c3c40389d9e77e4)
test/sql/test_defaults.py