Ticket #2699: quote_name.diff

File quote_name.diff, 592 bytes (added by serbaut@…, 18 years ago)
  • introspection.py

     
    4242    except (ProgrammingError, OperationalError):
    4343        # Fall back to "SHOW CREATE TABLE", for previous MySQL versions.
    4444        # Go through all constraints and save the equal matches.
    45         cursor.execute("SHOW CREATE TABLE %s" % table_name)
     45        cursor.execute("SHOW CREATE TABLE %s" % quote_name(table_name))
    4646        for row in cursor.fetchall():
    4747            pos = 0
    4848            while True:
Back to Top