Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errro with mysql Row size #90

Open
albertwh1te opened this issue Jul 12, 2016 · 1 comment
Open

errro with mysql Row size #90

albertwh1te opened this issue Jul 12, 2016 · 1 comment

Comments

@albertwh1te
Copy link

when I use sqllite as my django databases when I run this command
python manage.py loadtestdata -v0 product.TrustProduct:10
it works perfectly well
But when I use Mysql as my database;

Django throwout this error message:

django.db.utils.OperationalError: (1118, 'Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.')

@gregmuellegger
Copy link
Owner

Hm, the generators usually get a correct max_length set that is determined from the actual model field. Can you paste the definition of your model here maybe? Are you sure the max length in the DB and in your model matches up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants