Skip to content
Snippets Groups Projects
Commit c2b2219f authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

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

parent bf68ff5d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment