[Dbix-class] bad result source? cryptic error message

Benjamin Hitz hitz at genome.stanford.edu
Fri Apr 10 18:30:27 GMT 2009


Heh.  It sure doesn't.  Now it works!  I wonder how that happened...  
it surely was created with 1; by Schema::Loader...

Thanks.

Ben

>
> Benjamin Hitz wrote on 2009-04-09:
>>
>> So, I have a result source (table class) made from an Oracle
>> Materialized View.
>> When I try to use it (rather, anything in the schema)M I get the
>> following error message:
>>
>> fasolt 215 > perl -I ../../ -MDB::Mod -e '$s=DB::Mod->schema'
>> DBIx::Class::Schema::throw_exception(): DB/Mod/Interaction_mv.pm  
>> did not
>> return a true value at (eval 716) line 3.
>
> This means your class DB/Mod/Interaction_mv.pm doesn't end with a  
> statement that evaluates to true.  Just add a line with '1;' to the  
> end of the file.
>
> Byron
>
> _______________________________________________
> 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/dbix-class@lists.scsys.co.uk

--
Ben Hitz
Senior Scientific Programmer
Saccharomyces Genome Project
Stanford University
hitz at genome.stanford.edu






More information about the DBIx-Class mailing list