[Dbix-class] transactions, etc.
Brandon Black
blblack at gmail.com
Thu Jan 25 16:50:28 GMT 2007
On 1/25/07, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> On 25 Jan 2007, at 14:27, Josef Karthauser wrote:
>
> >
> > I've not totally got my head around the auto loading code yet, but it
> > appears that the ...:DBI::driver code is being loaded too late.
> > It ought to be auto loaded when the schema object is populated, not
> > when the database connection is made.
>
> That's not possible, we can't be sure what we're connected to until
> the connection is made, and we can't pick the class when storage is
> instantiated since it's perfectly valid to change the connect_info
> afterwards.
>
Yes, this issue has popped up in other areas as well. I seem to
remember having an outstanding issue with that
NoBindVars/Storage::DBI::Sybase::MSSQL stuff over the late class
change as well, and we had talked about using delegation to lessen the
issue. I think there was a C3 issue in here too, something to do with
the storage class switch happening long after reinitialize(). This
stuff is long gone from my mental cache right now though, I don't
remember a lot of details.
-- Brandon
More information about the Dbix-class
mailing list