Jump to content

Error On Order Status Change


omine

Recommended Posts

PrestaShop displays this error when try to change the order status:

You can't specify target table 'ps_order_invoice' for update in FROM clause

UPDATE `ps_order_invoice` SET number =(SELECT new_number FROM (SELECT (MAX(`number`) + 1) AS new_number
            FROM `ps_order_invoice`) AS result) WHERE `id_order_invoice` = 1

PS 1.6.1.3

MySQL 5.7

 

I think is the same problem described on this topic: https://www.prestashop.com/forums/topic/493398-mysql-57-causes-error-when-ps-try-to-insert-date-as-0000-00-00-000000/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...