summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-04 19:10:18 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-04 19:10:18 +0000
commit0c515c51170bb19260e42da0d34a8db80021381e (patch)
treeb71e0bbf5d19b95245bdf3d7d310d7fee9bee856 /lib/sqlalchemy/databases
parent57a5b5f58eeb66ba4926156ab3fef3d3295e9f77 (diff)
downloadsqlalchemy-0c515c51170bb19260e42da0d34a8db80021381e.tar.gz
Added REPLACE statements to mysql autocommit list.
Diffstat (limited to 'lib/sqlalchemy/databases')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 1 insertions, 1 deletions
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)',