[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-877-g2712cc3

? sunnavy sunnavy at bestpractical.com
Tue Dec 14 13:03:18 EST 2010


The branch, 3.9-trunk has been updated
       via  2712cc3f802801744b6620f63adf7d4c2519307b (commit)
      from  e92e47ad766fccb2d8d6616ab132bf068608798b (commit)

Summary of changes:
 share/html/Install/Initialize.html |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 2712cc3f802801744b6620f63adf7d4c2519307b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Dec 15 02:01:44 2010 +0800

    @RT::Handle::ISA is dynamical

diff --git a/share/html/Install/Initialize.html b/share/html/Install/Initialize.html
index d2df967..381e128 100644
--- a/share/html/Install/Initialize.html
+++ b/share/html/Install/Initialize.html
@@ -73,6 +73,11 @@ if ( $Run ) {
 
     my @actions = split /,/, $RT::Installer->{DatabaseAction};
 
+    # RT::Handle's ISA is dynamical, so we need to unshift the right one.
+    my $class = 'DBIx::SearchBuilder::Handle::' .  RT->Config->Get('DatabaseType');
+    $class->require or die $UNIVERSAL::require::ERROR;
+    unshift @RT::Handle::ISA, $class;
+
     my $sysdbh = DBI->connect(
         RT::Handle->SystemDSN,
         $RT::Installer->{InstallConfig}{DatabaseAdmin},

-----------------------------------------------------------------------


More information about the Rt-commit mailing list