Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from "use base" to a method which can run more than once
RT::Handle->FinalizeDatabaseType is called when the package is require'd, thanks to the final lines of RT::Handle. This means that it is always called in RT::Test->bookstrap_db, which is always called on 'use RT::Test'. Furthermore, "use base ..." will only have an effect _once_. As such, in t/web/install.t, the "SQLite" handle is actually still an DBIx::SearchBuilder::Handle::Oracle despite DatabaseType being SQLite. This leads to the SystemDSN being dbi:SQLite:sid=/path/to/rt4test_install_xxx;host=hostname;port=1521 which fares about as well as you might expect. Switch to setting the parentage via an explicit require and @isa, which can be called more than once.
- Loading branch information