diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-10 21:09:04 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-10 21:09:04 +0000 |
commit | a21dc3d3e382e8e2b0a842c3da81e770cd5d6f67 (patch) | |
tree | 6f532a2d7a1772ed29146c2d065fc6234348ed9f /test/dialect/mysql.py | |
parent | 8010017e45f7c03ab843039ff03bfc4ee570a8b0 (diff) | |
download | sqlalchemy-a21dc3d3e382e8e2b0a842c3da81e770cd5d6f67.tar.gz |
- the function func.utc_timestamp() compiles to UTC_TIMESTAMP, without
the parenthesis, which seem to get in the way when using in
conjunction with executemany().
Diffstat (limited to 'test/dialect/mysql.py')
-rw-r--r-- | test/dialect/mysql.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dialect/mysql.py b/test/dialect/mysql.py index 5a03ffa98..641139167 100644 --- a/test/dialect/mysql.py +++ b/test/dialect/mysql.py @@ -864,6 +864,9 @@ class SQLTest(TestBase, AssertsCompiledSQL): "UPDATE t SET col1=%s WHERE t.col2 = %s LIMIT 1" ) + def test_utc_timestamp(self): + self.assert_compile(func.utc_timestamp(), "UTC_TIMESTAMP") + def test_cast(self): t = sql.table('t', sql.column('col')) m = mysql |