summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 73590bcd5..adfdcf056 100644
--- a/CHANGES
+++ b/CHANGES
@@ -38,6 +38,9 @@ CHANGES
strptime/strftime, to generically support pre-1900 dates,
dates with microseconds. [ticket:968]
+- mysql
+ - Temporary tables are now reflectable.
+
0.5.0rc1
========
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 9058df926..f1187b8ac 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -2406,7 +2406,7 @@ class MySQLSchemaReflector(object):
self.preparer._escape_identifier(_final))]))
self._pr_name = _pr_compile(
- r'^CREATE TABLE +'
+ r'^CREATE (?:\w+ +)?TABLE +'
r'%(iq)s(?P<name>(?:%(esc_fq)s|[^%(fq)s])+)%(fq)s +\($' % quotes,
self.preparer._unescape_identifier)