[Dbix-class] inheritance problem?

Alan Humphrey alan.humphrey at comcast.net
Tue Sep 26 00:41:48 CEST 2006



-----Original Message-----
From: dbix-class-bounces at lists.rawmode.org
[mailto:dbix-class-bounces at lists.rawmode.org] On Behalf Of Daniel
Westermann-Clark
Sent: Monday, September 25, 2006 11:36 AM
To: dbix-class at lists.rawmode.org
Subject: Re: [Dbix-class] inheritance problem?

On 2006-09-25 11:27:01 -0700, Alan Humphrey wrote:
> I'm trying to use the Sybase::MSSQL storage type and I'm seeing
> something I don't understand.
> 
> In my schema module I have:
> 
> __PACKAGE__->mk_classdata('storage_type' => '::DBI::Sybase::MSSQL');

I believe this should be:

__PACKAGE__->storage_type('::DBI::Sybase::MSSQL');


>>
I picked up the mk_classdata approach from an earlier thread.  In any event,
it doesn't make a difference:

  DB<8> x $schema->{storage}>isa('DBIx::Class::Storage::DBI::Sybase::MSSQL')

0  1
  DB<9> x $schema->{storage}->isa('DBIx::Class::Storage::DBI::NoBindVars')

0  1
  DB<10> x $schema->{storage}->can('_execute')

0  CODE(0x938439c)
   -> &DBIx::Class::Storage::DBI::_execute in
/usr/pkg/lib/perl5/site_perl/5.8.0/DBIx/Class/Storage/DBI.pm:752-784




More information about the Dbix-class mailing list