by lcampbell · 13y ago · 0 comments
That made me chortle. If you can't roll back an `ALTER TABLE` command (e.g., to back out of a failed schema migration), you don't really have good ACID semantics. Here's a list of other fun MySQL commands that sidestep transactions: http://dev.mysql.com/doc/refman/5.5/en/implicit-commit.html
http://docs.oracle.com/cd/E17952_01/refman-5.1-en/implicit-c...
Edit - I was wrong!
Not only did I link to the wrong docs, but Oracle fixed what I considered to be a longstanding bug.
Thanks to those who pointed it out.
For a very, very long time, Oracle has enforced implicit transaction boundaries around DDL, and it is about time that finally changed.
--
[1] http://stackoverflow.com/questions/4692690/is-it-possible-to...
As of about 4 years ago Oracle's been the owners of MySQL, so that's the reason why you're seeing it hosted at docs.oracle.com.
Now, I know that _some_ databases offer some level of support to include DLL operations within a transaction, but its far from being common, and most of the implementations are quite recent.
This has a way of biting one in the ass in the worst possible moment, during a migration.
Actually, I think we are giving too much credit to Oracle! There are (relatively subtle, but real) concurrency anomalies in their so-called "serializable" isolation level.
Can you give an example?
It shouldn't require too crazy of an implementation to allow reads concurrent with schema modification (seeing the old version of the world) and it's not impossible to allow concurrent, transactional writes too.