From 554f223f6b6af9bf2dd387e146a1c67650599ed6 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 28 Oct 2008 21:32:24 +0000 Subject: Accept USING as a prefix or postfix modifer when reflecting keys. [ticket:1117] --- lib/sqlalchemy/databases/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 0c22d6881..daa24e469 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -2481,8 +2481,9 @@ class MySQLSchemaReflector(object): r' ' r'(?:(?P\S+) )?KEY' r'(?: +%(iq)s(?P(?:%(esc_fq)s|[^%(fq)s])+)%(fq)s)?' - r'(?: +USING +(?P\S+))?' + r'(?: +USING +(?P\S+))?' r' +\((?P.+?)\)' + r'(?: +USING +(?P\S+))?' r'(?: +KEY_BLOCK_SIZE +(?P\S+))?' r'(?: +WITH PARSER +(?P\S+))?' r',?$' -- cgit v1.2.1