Bug #57333 Update all rows in table on Mac OS X causes error 1242

Submitted: 8 Oct 2010 4:15 Modified: 8 Oct 2010 6:11
Reporter: Peter Dines Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Errors Severity:S1 (Critical)
Version:5.1.51 OS:MacOS (10.6.4)
Assigned to: CPU Architecture:Any

[8 Oct 2010 4:15] Peter Dines
Description:
Running this SQL to update all rows in a table:

update [table]
  set [column] = [somevalue]

...causes this error:

Error Code: 1242
Subquery returns more than 1 row

This prevents the SQL command from executing. It happens when using both the command line client and workbench.

I tried it on a MySQL server running on Windows using the same schema and command, and it works properly.

How to repeat:
try to update all rows in a table on OS X
[8 Oct 2010 4:40] Shane Bester
i wouldn't say this is a bug.  check that you don't have some incorrectly written triggers on these tables being updated?
[8 Oct 2010 6:11] Peter Dines
Oooof! You are correct. I removed the update trigger and the query worked. 

Sorry!

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.037 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.