1. idank
  2. sqlalchemy

Commits

Mike Bayer  committed ba52005

- added 'EXPLAIN' to the list of 'returns rows', but this
issue will be addressed more fully by [ticket:1212].

  • Participants
  • Parent commits c53a978
  • Branches default

Comments (0)

Files changed (2)

File CHANGES

View file
 
     - No longer expects include_columns in table reflection to be
       lower case.
+
+    - added 'EXPLAIN' to the list of 'returns rows', but this 
+      issue will be addressed more fully by [ticket:1212].
       
 - misc
     - util.flatten_iterator() func doesn't interpret strings with

File lib/sqlalchemy/databases/mysql.py

View file
     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)',
+    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',