News for hackers. Stuff that matters.
Re:How I Fired Myself by juan_juarez on Wednesday February 27, 2013 @12:42PM (#5293652)
Hell - this could have been avoided if they weren't using graphical tools or had a database that used transactions.
Re:How I Fired Myself by krallja on Wednesday February 27, 2013 @12:56PM (#5293749)
Neither of those things would have fixed this problem.

1. "Oops, I wrote TRUNCATE TABLE User instead of TRUNCATE TABLE Raids"

2. Transaction complete. ... ... "oops!"

Re:How I Fired Myself by whatshisface on Wednesday February 27, 2013 @02:33PM (#5294322)
Well, to be fair it's harder to type User than it is to miss your rightclick by something that could have only been a few pixels.
Re:How I Fired Myself by derekp7 on Wednesday February 27, 2013 @11:56PM (#5297064)
Also, I can't tell you how many times I've attempted to click on a button on a web form, and it was still loading and the button moved (along with a different button appearing in its place).
Re:How I Fired Myself by themonk on Wednesday February 27, 2013 @03:17PM (#5294602)
Why type "TRUNCATE TABLE Raids" every time? Type it once, test it, save as script, schedule that script.
Re:How I Fired Myself by krallja on Thursday February 28, 2013 @05:43PM (#5301610)
That is definitely another bug in this company's process. This should have been automated. It's much harder to screw up running a script!
Re:How I Fired Myself by ptaipale on Thursday February 28, 2013 @04:58AM (#5297978)
Not really. You obviously haven't (yet) done anything like update t1 set status=0; where status=4; when you wanted to release (set status to 0) objects that are stuck in state 4, and let all other objects keep their existing statuses.

This is an easy mistake to make on command line. I hate GUIs too but not having one doesn't really help when your fundamental operating model is wrong.

Re:How I Fired Myself by devicenull on Thursday February 28, 2013 @02:31PM (#5300416)
And that's why you use --i-am-a-dummy on the command line :)

http://dev.mysql.com/doc/refman/4.1/en/mysql-command-options...