[-] IN : FIX #PSCFV-10246 errors in stricts sql-mode, thanks @enumag

This commit is contained in:
gRoussac
2013-09-23 15:17:15 +02:00
parent c6222c51c8
commit dedc59f1db
6 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
SET NAMES 'utf8';
UPDATE `PREFIX_orders` o
SET o.`current_state` = (
SET o.`current_state` = IFNULL((
SELECT oh.`id_order_state`
FROM `PREFIX_order_history` oh
WHERE oh.`id_order` = o.`id_order`
ORDER BY oh.`date_add` DESC
LIMIT 1
);
), 0);