>
> Was there supposed to be an attachment?
>

No, since I expect that Tim releases soon a new version of DBI. I just
wanted give a short infomation, since I think DBI is very important to the
success of mod_perl 2.

I case anybody likes to have the patch before Tim releases DBI, I attach it.

To get DBD::ODBC working, just add

    sub CLONE {
    $drh = undef ;
    }

to ODBC.pm. This CLONE sub must be added for all other DBD drivers as well
(assuming they use the same code as DBD::ODBC and DBD::Oracle for creating
$drh). For other drivers it is necessary to check if they use any globals in
their C code. If they do, the globals needs to made per thread. (That is
what the ora.patch does for DBD::Orcale). The ora.patch also contains some
experimetal code to share handles on the Orcale level between threads, but
it seems not to work quite well under mod_perl, while it does from the
command line.

NOTE: This patch only make sure DBI works correctly with multiple threads
and perl interpreter cloneing is handled correctly. There is currently no
way to share any DBI handles between threads. Shareing DBI handle, is what I
would like to implement, but after looking more closely to the DBI, I saw
that this is very very much work. Additonaly Tim suggested to first get DBI
cleanly running with threads, without the ability to share handles. That's
what the patch implements.

Gerald

P.S. I am off to holiday for the rest of the week, so I may not be able to
answer further questions. Looking forward to meet you all on the OSCON


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

Attachment: ora.patch
Description: Binary data

Attachment: dbi.patch
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to