(this probably applies exactly the same for MySQL and Drizzle… but I’m just speaking about current Drizzle here)
In my current merge request for the embedded-innodb-create-select-transaction-arrgh branch (also see this specific revision), you’ll notice an odd hoop that we have to jump through to make CREATE SELECT statements work with an engine such as InnoDB.
Basically, this is what happens:
- start transaction
- start executing SELECT QUERY (well, …