I just drop in the following snippet --DELETE FROM SELECT TOP 10 * FROM
WHERE
that way whatever I type into the gap as the table name will throw an error until I complete the WHERE, and even then will just give me rows validating the WHERE logic until I swap the commenting between the first and second lines.
And if it doesn't work call it an "Interesting data point" but that more "data points" will need to be gathered to make any real determination of who is really to blame for prod being down now.
I remember working on Oracle years ago. And we had pleeeenty of triggers on tables. We had a simple task to update one record, which was not updated due to the logic error. We also didn't want any DB trigger to run when performing that update.
So... The dev prepared a standard anonymous PL/SQL block with commands like BEGIN DISABLE ALL TRIGGERS; UPDATE foo SET bar = 'dummy'; ENABLE ALL TRIGGERS; END
The dev opened a transaction and ran it, just to test it. The dev noticed their missing WHERE clause and rollbacked the transaction.
Ooppps. All records changed their bar column to value from this update. Wait? Why?
Ohhhhh... Oracle's DISABLE/ENABLE TRIGGERS statement is not really transactional and always makes an implicit commiy for you.
Of course, I don't want to be dismissive and I agree with you. Just that running everything within a transaction isn't a silver bullet either.
Worth stating that the application design was definitely not helpful. Neither were the practices of testing such SQLs on a real, production, live database. :)
View all comments
4.2k
u/Spillz-2011 Oct 14 '25
If there’s no danger how do you get the rush. Don’t tell me you use transactions.