I'm having a strange issue with the updating multiple rows in one query. Take the following example:
UPDATE `custom_pricing` SET `price_per_unit` = 123456 WHERE `price_id` = 21688;
UPDATE `custom_pricing` SET `price_per_unit` = 69 WHERE `price_id` = 80085;
Apparently if I use more than one UPDATE statement at a time, only the last statement works. So in the above only my product_id = 80085
gets updated. Of course, both work when used independently.
I just did a similar query to another database on the same server and it worked just fine. Could there be a settings or limitation to a specific database that might effect this? Why doesn't my sql work?