From: "Ray Hilton" <[EMAIL PROTECTED]> > Basically, we are using ithreads in perl 5.8.0-RC3 and using DBI-1.29 > to access a mysql database. Everything seems to work ok, except when > we try to create a new thread AFTER a database connection has been > created in the main process, in which case it seems that perl is > trying to clone the DBI connection (which is understandable as that is > what ithreads does) but then failing. My guess is that it is either > DBI is not fully compatable with it (contrary to what I have read) or > I am doing something stupid (far more likely). > > If anyone has experience of anything like this, do you have any > pointers? This is the error I am getting: > > thread failed to start: DBD::mysql::dr connect failed: handle 1 is > owned by thread 8123da8 not current thread 8495d20 (handles can't be > shared between threads and your driver may need a CLONE method added)
This looks more like DBI is iThreads compatible, but DBD::mysql is not. Considering the amount of people using mysql I bet it will be updated pretty soon. Maybe you should report the problem to DBD::mysql's author though. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me
