With django 1.6.2, python3 and MySQL manage.py inspectdb brings this error:
django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s AND table_schema = DATABASE()\n AND character_maximum_length IS' at line 2")
I put some print statements in
- django/db/backends/mysql/introspection.py line 43
- django/db/utils.py line 111, 125, 151, 154, 165, 202
- django/db/backends/util.py line 47
The output with traceback shows in line 22 (from line 43 introspections.py) the table_name auth_group
and then from util line 47 the sql statement in which the table_name should be inserted.
But that doesn't happened. The executed sql statement contains still %s and not the table name.
Any idea?
Egon