Commit c2b2219f authored by Taddeus Kroes's avatar Taddeus Kroes

Table names are now encapsulated by backticks before being used in a query

parent bf68ff5d
......@@ -269,7 +269,7 @@ def read_tables(conn):
def read_fields(conn, table):
cur = conn.cursor(mysql.cursors.DictCursor)
cur.execute('show columns from %s' % table)
cur.execute('show columns from `%s`' % table)
fields = cur.fetchall()
cur.close()
return fields
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment