in reply to Re: DBIx::Class::Schema::Loader prob
in thread DBIx::Class::Schema::Loader prob
That was very helpful thanks. The connection was a success and with debug I can see all the tables and columns being set up. In fact there seem to be 2 problems, not 1. The first problem is the error message
Attempt to free unreferenced scalar: SV 0x1fa7a5c, Perl interpreter: 0 +x224234 at C:/Perl/site/lib/SQL/Abstract/Limit.pm line 325.
Some more tinkering has established that this is happening when the following line is executed:
@all_countries = $schema->resultset('Country')->all;If I remove this line, it disappears. And yet it only happens when the schema is loaded via Loader - it does not appear when the schema is loaded via my manually created modules. The Loader debugger does not give any clues.
Further testing has established that the same message appears for the search, next and find methods in DBIx::Class::ResultSet. Also I've tried 3 tables and it happens with all. So it seems that the problem happens with multiple resultset methods against multiple tables but only when tables are loaded using the Loader module.
I'm not sure if it is related to the second problem which I will post as a separate response immediately following this post.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: DBIx::Class::Schema::Loader prob
by jfrm (Monk) on Sep 06, 2006 at 13:36 UTC |