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.
Comments
Something along the lines of this, abstracted away a few layers, would be my guess.
Unfortunate bug causes method to fail silently, program does not crash, instead performs unfortunately incorrect query.