Skip Menu |

This queue is for tickets about the DBIx-SearchBuilder CPAN distribution.

Report information
The Basics
Id: 2780
Status: resolved
Priority: 0/
Queue: DBIx-SearchBuilder

Owner: Nobody in particular
Requestors: rnp [...]

Bug Information
Severity: Important
Broken in: 0.86
Fixed in: (no value)

Subject: DBIx::SearchBuilder::Handle to handle multiple database connections
Download (untitled) / with headers
text/plain 232b
DBIx::SearchBuilder::Handle stores the DBI handle as a class variable, so you can't use it to connect to more than one database; all handles point to the database connected to last. Tentative patch included. cheers, Richard.
Download DBIx.patch
text/x-diff 533b
--- 2003-06-11 14:14:55.000000000 +1200 +++ 2003-06-11 14:14:46.000000000 +1200 @@ -4,7 +4,7 @@ use DBI; use strict; use Class::ReturnValue; -use vars qw($VERSION @ISA $DBIHandle $DEBUG $TRANSCOUNT); +use vars qw($VERSION @ISA $DEBUG $TRANSCOUNT); $TRANSCOUNT = 0; @@ -265,9 +265,9 @@ my $self=shift; #If we are setting the database handle, set it. - $DBIHandle = shift if (@_); + $self->{'dbihandle'} = shift if (@_); - return($DBIHandle); + return($self->{'dbihandle'}); } # }}}

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to