diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-04 17:28:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-04 17:28:26 +0000 |
commit | c38e5d043f3d340f8e3cb3c82d2013739f35fc78 (patch) | |
tree | 9b63eb16b82b53392cbb0fd322836be57022695a /lib/sqlalchemy/databases/mysql.py | |
parent | 3f1e5e213d65375e89a23ecb4d50566c1f34b7b0 (diff) | |
download | sqlalchemy-c38e5d043f3d340f8e3cb3c82d2013739f35fc78.tar.gz |
- Simplified the check for ResultProxy "autoclose without results"
to be based solely on presence of cursor.description.
All the regexp-based guessing about statements returning rows
has been removed [ticket:1212].
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index b03ee5764..3dbb1797d 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -220,9 +220,6 @@ RESERVED_WORDS = set( AUTOCOMMIT_RE = re.compile( 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|CALL|EXPLAIN)', - re.I | re.UNICODE) SET_RE = re.compile( r'\s*SET\s+(?:(?:GLOBAL|SESSION)\s+)?\w', re.I | re.UNICODE) @@ -1463,9 +1460,6 @@ class MySQLExecutionContext(default.DefaultExecutionContext): # which is probably a programming error anyhow. self.connection.info.pop(('mysql', 'charset'), None) - def returns_rows_text(self, statement): - return SELECT_RE.match(statement) - def should_autocommit_text(self, statement): return AUTOCOMMIT_RE.match(statement) |