Hi Alan,

Try using:

testproductiondb:****

    dsn: DBI:ODBC:sas****

    user: user****

    password: pass

    LongReadLen: 5000


There was a change to the configuration file to treat the entire config as
a hash, instead of having an options array, to make it a compatible with
other configuration loaders.  This came out between 0.1.0 and 0.1.1.  The
current release is 0.1.6 and I don't foresee any other changes with the API.


I'm sorry for the inconvenience.

On Wed, Nov 16, 2011 at 9:32 AM, Alan Humphrey <[email protected]>wrote:

> I’m trying to use DBIx::Class::Schema::Config to manage my db connection
> info.  It was working, but after an upgrade it isn’t.****
>
> ** **
>
> It looks like something in how the connection information is stored/used
> changed.  Trouble is, I don’t know who’s at fault.****
>
> ** **
>
> See below for a program snippet and output showing the change.  The
> problem is with the options portion of the connection info.  It works fine
> for $schema, doesn’t work for $schema1.****
>
> ** **
>
> Any pointers are appreciated.****
>
> ** **
>
> **-          **Alan****
>
> ** **
>
> DBIx::Class version: 0.08195****
>
> DBIx::Class::Schema::Config  version: 0.001006****
>
> ** **
>
> dbic.yml entry:****
>
> ** **
>
> testproductiondb:****
>
>     dsn: DBI:ODBC:sas****
>
>     user: user****
>
>     password: pass****
>
>     options: ****
>
>         LongReadLen: 5000****
>
> ** **
>
> my $schema = BirdWeb::BirdWebSchema->connect('DBI:ODBC:sas', 'user',
> 'pass', {LongReadLen => 5000});****
>
> my $schema1 = BirdWeb::BirdWebSchema->connect('testproductiondb');****
>
> ** **
>
> say Dumper($schema->storage->connect_info);****
>
> say Dumper($schema1->storage->connect_info);****
>
> ** **
>
> $VAR1 = [****
>
>           {****
>
>             'password' => 'pass',****
>
>             'LongReadLen' => 5000,****
>
>             'dsn' => 'DBI:ODBC:sas',****
>
>             'user' => 'user'****
>
>           }****
>
>         ];****
>
> ** **
>
> $VAR1 = [****
>
>           {****
>
>             'password' => 'pass',****
>
>             'options' => {****
>
>                            'LongReadLen' => 5000****
>
>                          },****
>
>             'dsn' => 'DBI:ODBC:sas',****
>
>             'user' => 'user'****
>
>           }****
>
>         ];****
>
> _______________________________________________
> 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]
>
_______________________________________________
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