Unfortunately, `python -Werror runtests.py` doesn't display a traceback.
--
Ticket URL: <https://code.djangoproject.com/ticket/21196>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by afuna):
`python -Walways ./runtests.py` gives me
`django/db/backends/mysql/base.py:128: Warning: Specified key was too
long; max key length is 767 bytes`
I'd be happy to dig into this more, but I'm not sure what desired behavior
is. Is it to silence the warning, turn it into an exception, adjust the
test, or something else? :)
--
Ticket URL: <https://code.djangoproject.com/ticket/21196#comment:1>
* owner: nobody => tchaumeny
* cc: t.chaumeny@… (added)
* has_patch: 0 => 1
* status: new => assigned
Comment:
I encountered the same problem when trying to run the test suite under
MySQL. It looks like MySQL doesn't support indexing VARCHAR fields with a
length of 767+ on InnoDB tables (see
http://dev.mysql.com/doc/refman/5.1/en/create-index.html). #15938
introduced a `SlugField` on a field with `max_length = 1000` for a test.
https://github.com/django/django/pull/3388 sets `db_index=False`, which
solves the problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/21196#comment:2>
Comment (by loic):
Indeed:
Prefix support and lengths of prefixes (where supported) are storage
engine dependent. For example, a prefix can be up to 1000 bytes long for
MyISAM tables, and 767 bytes for InnoDB tables.
--
Ticket URL: <https://code.djangoproject.com/ticket/21196#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"825ea8385857a98a36b3dc67c427b0000b5d9112"]:
{{{
#!CommitTicketReference repository=""
revision="825ea8385857a98a36b3dc67c427b0000b5d9112"
Fixed #21196 -- Removed index on test field causing MySQL specific
warning.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21196#comment:4>