- Tue Jan 22, 2019 10:58 am
#822492
Hello!
I'm trying to update table which I created in admin profile. My query is - $query_update ="UPDATE PMT_SUPPLIERS SET NAME='$supplier' WHERE CODE='$code'". The result of executeQuery($query_update) = 0; I had run the same query in Workbench and got error "You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option .... ", when I 'm running "SET SQL_SAFE_UPDATES = 0;" in Workbench - the query is running successfully, but in trigger this doesn't help, I can't update row((
I'm trying to update table which I created in admin profile. My query is - $query_update ="UPDATE PMT_SUPPLIERS SET NAME='$supplier' WHERE CODE='$code'". The result of executeQuery($query_update) = 0; I had run the same query in Workbench and got error "You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option .... ", when I 'm running "SET SQL_SAFE_UPDATES = 0;" in Workbench - the query is running successfully, but in trigger this doesn't help, I can't update row((
Attachments
Screenshot_2.jpg (20.04 KiB) Viewed 1777 times