Author: timbo
Date: Fri Apr 6 06:59:51 2007
New Revision: 9378
Modified:
dbi/trunk/lib/DBI/Gofer/Execute.pm
Log:
Avoid reusing dbh cached by parent in child
Modified: dbi/trunk/lib/DBI/Gofer/Execute.pm
==============================================================================
--- dbi/trunk/lib/DBI/Gofer/Execute.pm (original)
+++ dbi/trunk/lib/DBI/Gofer/Execute.pm Fri Apr 6 06:59:51 2007
@@ -169,7 +169,8 @@
# ensure this connect_cached doesn't have the same args as the client
# because that causes subtle issues if in the same process (ie
transport=null)
- dbi_go_execute_unique => __PACKAGE__,
+ # include pid to avoid problems with forking (ie null transport in
mod_perl)
+ dbi_go_execute_unique => __PACKAGE__."$$",
});
$dbh->{ShowErrorStatement} = 1 if $local_log;
#$dbh->trace(0);