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

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to