[Dbix-class] DBIx::Class::Schema::Loader Can't use string error

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Wed Oct 27 14:26:12 GMT 2010


I just installed DBIx::Class::Schema::Loader on a new machine (what a
lot of dependencies!) and tried to run this code:

#!/usr/bin/perl
use strict;
use warnings;

use DBIx::Class::Schema::Loader qw/ make_schema_at /;

make_schema_at( 'QD1x::Schema',
                {
                   dump_directory => '.',
                },
                [
                   'dbi:mysql:host=suse3;database=q_d_1',
                   'dhoworth',
                   '',
                ],
);


It seems to have produced reasonable looking schema files but it also
produced an error when it ran:

$ ./create-schema.pl
Dumping manual schema for QD1x::Schema to directory . ...
Schema dump completed.
Failed to reload class QD1x::Schema::Result::EntryAttribute: Can't use
string ("QD1x::Schema::Result::EntryAttri") as a HASH ref while "strict
refs" in use at /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 864.
Compilation failed in require at (eval 650) line 3.

I checked and "DBIx::Class is up to date (0.08123)."

Does anybody have any idea what the error means?

Thanks, Dave



More information about the DBIx-Class mailing list