silverstripe/sapphire — pull request #878 by chillu (2012-10-15 18:42:19+00:00)
Title: BUG Using Session::set() for DB::set_alternative_database_name()

Setting session directly through $_SESSION relies on
session_autostart which might not be set on every environment,
and isn't consistent with other framework use.

This is required to get Behat going on our TeamCity instance, which doesn't autostart sessions
unless you go through Session::set(). At first I thought this was using $_SESSION directly because the Session instance was pointing to an in-memory mock, but it doesn't in any existing use of set_alternative_database_name().