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 /lib/sqlalchemy/databases/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 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 729e1ad45..9058df926 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1948,7 +1948,8 @@ class MySQLCompiler(compiler.DefaultCompiler): }) functions = compiler.DefaultCompiler.functions.copy() functions.update ({ - sql_functions.random: 'rand%(expr)s' + sql_functions.random: 'rand%(expr)s', + "utc_timestamp":"UTC_TIMESTAMP" }) |