News for hackers. Stuff that matters.
Re:6pm.com's 1.6 million dollar pricing mistake by burke on Sunday May 23, 2010 @07:14PM (#1373316)
Something along the lines of this, abstracted away a few layers, would be my guess.

    def build_query()
      "UPDATE prices SET price=4995 #{where_clause}"
    end
    def where_clause() # only set prices on products in our group of stuff to sell
      return "oops, I'm accidentally an empty string"
    end
Unfortunate bug causes method to fail silently, program does not crash, instead performs unfortunately incorrect query.

There are no comments on this comment yet.