|
@@ -269,7 +269,7 @@ def read_tables(conn):
|
|
|
|
|
|
|
|
def read_fields(conn, table):
|
|
def read_fields(conn, table):
|
|
|
cur = conn.cursor(mysql.cursors.DictCursor)
|
|
cur = conn.cursor(mysql.cursors.DictCursor)
|
|
|
- cur.execute('show columns from %s' % table)
|
|
|
|
|
|
|
+ cur.execute('show columns from `%s`' % table)
|
|
|
fields = cur.fetchall()
|
|
fields = cur.fetchall()
|
|
|
cur.close()
|
|
cur.close()
|
|
|
return fields
|
|
return fields
|