Skip to content

Commit 28893fd

Browse files
committed
BUG20987205: Add support for Django 1.8
Extra fix to make introspection.py compatible with Python v2.6.
1 parent 2d7f4eb commit 28893fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mysql/connector/django/introspection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def get_table_description(self, cursor, table_name):
9494
FROM information_schema.columns
9595
WHERE table_name = %s AND table_schema = DATABASE()""",
9696
[table_name])
97-
field_info = {
98-
line[0]: InfoLine(*line) for line in cursor.fetchall()
99-
}
97+
field_info = dict(
98+
(line[0], InfoLine(*line)) for line in cursor.fetchall()
99+
)
100100

101101
cursor.execute("SELECT * FROM %s LIMIT 1"
102102
% self.connection.ops.quote_name(table_name))

0 commit comments

Comments
 (0)