1093, "You can't specify target table 'catalogue_category' for update in FROM clause")

52 views
Skip to first unread message

rohit kumar sinha

unread,
Oct 26, 2020, 6:15:33 PM10/26/20
to django-oscar
Hi ,

 I am using MySql as database , after the Oscar setup when creating a category I am getting below error "1093, "You can't specify target table 'catalogue_category' for update in FROM clause")" .  I am creating category once i created 'Partner' and 'Product  type'  , same instance never had any issue creating category when was connected to "Sqlite" after switching to 'mysql'  I am  getting this error.

Please advice, evert thing else works fine except creating Categories.


solari...@gmail.com

unread,
Oct 26, 2020, 10:37:16 PM10/26/20
to django-oscar
Unfortunately Oscar doesn't currently officially support for MySQL - and this is one of the places where MySQL fails. See https://github.com/django-oscar/django-oscar/issues/3335 . Patches to improve compatibility with MySQL are welcome.

rohit kumar sinha

unread,
Oct 27, 2020, 1:58:22 AM10/27/20
to django...@googlegroups.com
Is this issue only with category ? What is your suggestion which database should I preffer instead ?

Do you suggest using sqlite for few years or using Postgress Sql ? If issue is only with category we can have a work around.

Thanks.

On Tue, 27 Oct 2020, 08:07 solari...@gmail.com, <solari...@gmail.com> wrote:
Unfortunately Oscar doesn't currently officially support for MySQL - and this is one of the places where MySQL fails. See https://github.com/django-oscar/django-oscar/issues/3335 . Patches to improve compatibility with MySQL are welcome.

--
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/4cc02345-b943-4f8b-b6f7-520de16b7cdbn%40googlegroups.com.

solari...@gmail.com

unread,
Oct 27, 2020, 2:02:22 AM10/27/20
to django-oscar
I'd recommend using PotsgreSQL. You definitely should not use SQlite in production.

I'm not sure whether you will run into issues elsewhere - the code base is not tested on MySQL it is possible that other queries may also be problematic.

rohit kumar sinha

unread,
Oct 27, 2020, 3:05:30 AM10/27/20
to django...@googlegroups.com
Thanks for the help :)

On Tue, Oct 27, 2020 at 11:32 AM solari...@gmail.com <solari...@gmail.com> wrote:
I'd recommend using PotsgreSQL. You definitely should not use SQlite in production.

I'm not sure whether you will run into issues elsewhere - the code base is not tested on MySQL it is possible that other queries may also be problematic.

--
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.


--
Thanks and Regards,
Rohit Kumar Sinha
Mob: 9990075303

Reply all
Reply to author
Forward
0 new messages