On 1/25/07, Matt S Trout <[EMAIL PROTECTED]> 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

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to