473,499 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl DBD

I have this multi-threaded perl program where I'm trying to do
independant database operations in separate threads. I was getting an
error similar to the following:

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

After looking at the code and some other perl DB drivers, I added the
following bit to the DB2.pm file:

sub CLONE {
$drh = undef;
}

I e-mailed a guy at IBM who had something to do with the Perl stuff
(sorry, can't remember the name) and he said that the underlying driver
should be all thread safe and this should work.
In all my testing that I've run, I've never had a problem running
multi-threaded with this code in place. So, my question is, does
anyone know how we'd get this change made to the DB2 DBD driver? I
gotta believe someone out there wants to use DB2 in a multi-threaded
Perl application. Am I going to have to keep patching this in by hand?

Thanks,
Greig Wise
Lead Database Developer
Press Ganey Associates

Dec 29 '06 #1
2 1910
gw***@pressganey.com wrote:
I e-mailed a guy at IBM who had something to do with the Perl stuff
(sorry, can't remember the name) and he said that the underlying driver
should be all thread safe and this should work.
In all my testing that I've run, I've never had a problem running
multi-threaded with this code in place. So, my question is, does
anyone know how we'd get this change made to the DB2 DBD driver?
I have asked "a guy at IBM who had something to do with the Perl" and I will
report here any replies.

Jan M. Nelken
Dec 29 '06 #2
gw***@pressganey.com wrote:
So, my question is, does anyone know how we'd get this change made to the DB2 DBD driver?
I received this reply from maintainers of DBD::DB2 driver:

"Thanks for recommending this change. We agree that this is an important
functionality to have and your suggested change seems correct.
(http://search.cpan.org/~timb/DBI/lib...al_subroutine).
We own the DBD::DB2 database driver and we will ensure that this goes in the
next release. We welcome any further inputs from you that will help us in
improving the database driver."

Jan M. Nelken
Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8118
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
31
4720
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
0
9734
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
3222
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
6
2979
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
3668
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
34317
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
47344
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.