From: Rafael Kitover Date: Tue, 7 Jul 2009 11:34:23 +0000 (+0000) Subject: fix sybase rebless to NoBindVars X-Git-Tag: v0.08112~14^2~109 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d71d78d8340ac1513b755fefa5fca9262cde4a7f;p=dbsrgits%2FDBIx-Class.git fix sybase rebless to NoBindVars --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm index 46da4a2..ff8f01f 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm @@ -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; } }