On Wed, 4 Jun 2008, Mitch Jackson wrote:

=>>        I had hoped that the examples in the documentation would
=>>        work regardless of the backend database engine... but I
=>>        guess not. So I've changed the code to be more explicit
=>>        about the data types:
=>>
=>> __PACKAGE__->add_columns(
=>>                         HostID => {
=>>                                    data_type => 'integer',
=>>                                   },
=>>                         TestGroupID => {
=>>                                         data_type => 'integer',
=>>                                        }
=>>                        );
=>>
=>>        However, this only gets me a little further and I get
=>>        the following (again I've left the <*> error indicator in):
=>
=>
=>There's a few more parameters you can use with add_columns:
=>
=>  field => {
=>    data_type => $coltype,
=>    size => $size,
=>    is_nullable => 0/1,
=>  }
=>
=>
=>I'm not sure where the documentation for this is.  I just dug through
=>the cookbook and docs for DBIx::Class::Schema->deploy, but it's not
=>there.  Perhaps somebody can point us in the right direction?
=>
See a) perldoc DBIx::Class::ResultSource
or  b)
http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/ResultSource.pm
-- 
                                - Dwalu
.peace
--
I am an important person in this world -
Now is the most important time in my life -
My mistakes are my best teachers -
So I will be fearless.
                                - Student Creed

_______________________________________________
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