summaryrefslogtreecommitdiff
path: root/test/dialect/mysql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-04-13 10:11:41 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-04-13 10:11:41 -0400
commitc0b85ad6ad1df2497a95c87d837c32d87f17291f (patch)
tree1d561d74d3b64faa5519fd2fc6e63d605c4c1543 /test/dialect/mysql/test_compiler.py
parente3b4042c9c5f05e1354dc5ab87803026a757fcfc (diff)
downloadsqlalchemy-c0b85ad6ad1df2497a95c87d837c32d87f17291f.tar.gz
Remove MySQL UTC_TIMESTAMP rule
Removed an ancient and unnecessary intercept of the UTC_TIMESTAMP MySQL function, which was getting in the way of using it with a parameter. Change-Id: I6e6b52c051418bcb9d31987e78299310810cb78d Fixes: #3966
Diffstat (limited to 'test/dialect/mysql/test_compiler.py')
-rw-r--r--test/dialect/mysql/test_compiler.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/dialect/mysql/test_compiler.py b/test/dialect/mysql/test_compiler.py
index be5f002e3..3c33f540c 100644
--- a/test/dialect/mysql/test_compiler.py
+++ b/test/dialect/mysql/test_compiler.py
@@ -336,7 +336,12 @@ class SQLTest(fixtures.TestBase, AssertsCompiledSQL):
)
def test_utc_timestamp(self):
- self.assert_compile(func.utc_timestamp(), "UTC_TIMESTAMP")
+ self.assert_compile(func.utc_timestamp(), "utc_timestamp()")
+
+ def test_utc_timestamp_fsp(self):
+ self.assert_compile(
+ func.utc_timestamp(5), "utc_timestamp(%s)",
+ checkparams={"utc_timestamp_1": 5})
def test_sysdate(self):
self.assert_compile(func.sysdate(), "SYSDATE()")