From a21dc3d3e382e8e2b0a842c3da81e770cd5d6f67 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 10 Sep 2008 21:09:04 +0000 Subject: - 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(). --- lib/sqlalchemy/databases/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') 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" }) -- cgit v1.2.1