fix sybase rebless to NoBindVars
Rafael Kitover [Tue, 7 Jul 2009 11:34:23 +0000 (11:34 +0000)]
lib/DBIx/Class/Storage/DBI/Sybase.pm

index 46da4a2..ff8f01f 100644 (file)
@@ -60,7 +60,8 @@ sub _rebless {
     } else {
       # real Sybase
       if (not $self->dbh->{syb_dynamic_supported}) {
-        bless $self, 'DBIx::Class::Storage:DBI::Sybase::NoBindVars';
+        $self->ensure_class_loaded('DBIx::Class::Storage::DBI::Sybase::NoBindVars');
+        bless $self, 'DBIx::Class::Storage::DBI::Sybase::NoBindVars';
         $self->_rebless;
       }
     }