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

use bulk_upsert with MySQL #76

Open
aksranka opened this issue Jun 19, 2016 · 0 comments
Open

use bulk_upsert with MySQL #76

aksranka opened this issue Jun 19, 2016 · 0 comments

Comments

@aksranka
Copy link

I am trying to use bulk_upsert with django ORM. I am using MySQL database as my backend. It does the insert part when some new rows are added but every time I triy to do an update using the update_fieldslist it throws an error complaining that the MySQL syntax is wrong:
'''
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 'FROM (VALUES
'''

When I tried to debug this further I realized that manager_utils uses django-query-builder which is build for postgre sql by default.
Any help would be greatly appreciated. Thanks

Akshar Ranka

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

1 participant