[Dbix-class] Re: [TestCase] premature sql_maker initialization

Peter Rabbitson rabbit+dbic at rabbit.us
Thu Nov 12 01:15:18 GMT 2009


Pedro Melo wrote:
> Hi again,
> 
> 
> On Fri, Oct 30, 2009 at 8:46 PM, Pedro Melo <melo at simplicidade.org
> <mailto:melo at simplicidade.org>> wrote:
> 
>     A probable solution would be to add something like this to
>     ::Storage::DBI::select_single():
> 
>      # redispatch to update method of storage we reblessed into, if
>     necessary
>      if (not $self->_driver_determined) {
>        $self->_determine_driver;
>        goto $self->can('select_single');
>      }
> 
>     but for some obscure reason I cannot get it to work.
> 
> 
> I got it to work. The attached patch fixes the problem for MySQL.
> 

Fixed in a more general way:
http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=7863

Cheers



More information about the DBIx-Class mailing list