error using threads in DB2



I am trying to use threads with the DBD::DB2 driver and get an error
saying that DBD::DB2 has no driver CLONE(). Can someone please tell me
why I am getting this error?

The program I am using is:
#!perl

use Thread;
use Clone;
use Clone qw(clone);
use DBI;
use DBD::DB2;
use DBD::DB2::Constants;

my $db = 'sample';
my $user = 'user';
my $pass = 'password';

my $dbh = DBI->connect("dbi:DB2:$db", $user, $pass) || die "Unable to
connect. error: $DBI::errstr\n";

my $stmt = "SELECT * FROM TEST";
my $sth = $dbh->prepare($stmt);
$sth->execute();
while(my @row=$sth->fetchrow){
print "$row[0] $row[1]\n";
my $conn1 = new Thread \&fetch_sub;
sleep(5);
}

sub fetch_sub{
}


The error is:
DB2 has no driver CLONE() function so is unsafe threaded

This is on a Linux environment with DB2v9.1.

.



Relevant Pages

  • Re: SCO 5.0.5 dd / clone
    ... Indeed I tried it with both the old wd driver (as ... same - the new clone is badly corrupted. ... >> have implemented a dd cloning of the master hard disk to a backup disk. ...
    (comp.unix.sco.misc)
  • Re: SCO 5.0.5 dd / clone
    ... Indeed I tried it with both the old wd driver (as ... If I boot from say a CD and clone ... >> have implemented a dd cloning of the master hard disk to a backup disk. ...
    (comp.unix.sco.misc)
  • Re: Ultra5 to Blade100 cloning
    ... >The clone boots and appears to be an intact copy, ... whatever graphics card you are using, ... There are a group of 4-5 packages for this ... (Device Driver, DDX module, config program, manpage ...) ...
    (comp.unix.solaris)
  • Re: Ultra5 to Blade100 cloning
    ... >The clone boots and appears to be an intact copy, ... whatever graphics card you are using, ... There are a group of 4-5 packages for this ... (Device Driver, DDX module, config program, manpage ...) ...
    (comp.sys.sun.hardware)
  • Re: ATAPI Hard Disk AGAIN
    ... > Clone the driver, and fix the init code to match your requirements. ... I have seen that there are ways to clone a BSP, ... but the external hardware in particular around the PCMCIA ...
    (microsoft.public.windowsce.platbuilder)