From 0c515c51170bb19260e42da0d34a8db80021381e Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Fri, 4 Jan 2008 19:10:18 +0000 Subject: Added REPLACE statements to mysql autocommit list. --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index c81148b7e..d89b6f5db 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -207,7 +207,7 @@ RESERVED_WORDS = util.Set( ]) AUTOCOMMIT_RE = re.compile( - r'\s*(?:UPDATE|INSERT|CREATE|DELETE|DROP|ALTER|LOAD +DATA)', + r'\s*(?:UPDATE|INSERT|CREATE|DELETE|DROP|ALTER|LOAD +DATA|REPLACE)', re.I | re.UNICODE) SELECT_RE = re.compile( r'\s*(?:SELECT|SHOW|DESCRIBE|XA RECOVER)', -- cgit v1.2.1