0.12.5dev: Use a per-environment thread-local to store the database connection during transactions.
Patch by Christian Boos, with minor tweaks by me. Closes #10938.
Authored by: rblank 2012-11-08
Parent: [r11466]
Child: [r11468]