Skip Menu |

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

Report information
The Basics
Id: 30398
Status: open
Priority: 0/
Queue: DBIx-SearchBuilder

People
Owner: Nobody in particular
Requestors: chardin [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: DBIx::SearchBuilder::Handle::mysql does not seem to deal with config file specification
Date: Wed, 31 Oct 2007 19:59:07 -0700
To: bug-DBIx-SearchBuilder [...] rt.cpan.org
From: Chuck Hardin <chardin [...] naming-schemes.org>
I am working with the DBIx::SearchBuilder version that was distributed with Red Hat Fedora Core 4. I believe it's version 1.43. I'm also using perl v5.8.6. I'm not sure why the following code does not work: my $shared_handle = DBIx::SearchBuilder::Handle->new(); my $dsn = "dbi:mysql:<db_name>;host=<hostname>;mysql_read_default_file=<config_file>"; my $dbh = DBI->connect($dsn, undef, undef); $shared_handle->dbh($dbh); However, it demonstrably does not. I've tried using it from within an HTML::Mason control component and have gotten nothing but errors. CCH
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #30398] DBIx::SearchBuilder::Handle::mysql does not seem to deal with config file specification
Date: Tue, 6 Nov 2007 12:43:13 -0500
To: Chuck Hardin via RT <bug-DBIx-SearchBuilder [...] rt.cpan.org>
From: jesse <jesse [...] fsck.com>
Show quoted text
> Subject: DBIx::SearchBuilder::Handle::mysql does not seem to deal with config file specification > > > I am working with the DBIx::SearchBuilder version that was distributed > with Red Hat Fedora Core 4. I believe it's version 1.43. I'm also > using perl v5.8.6. > > I'm not sure why the following code does not work: > > my $shared_handle = DBIx::SearchBuilder::Handle->new(); > > my $dsn = "dbi:mysql:<db_name>;host=<hostname>;mysql_read_default_file=<config_file>"; > my $dbh = DBI->connect($dsn, undef, undef); > $shared_handle->dbh($dbh);
Does the raw dbh work? Knowing what errors you get is likely to be the first step toward knowing what's wrong Show quoted text
> > However, it demonstrably does not. I've tried using it from within an > HTML::Mason control component and have gotten nothing but errors. > > CCH >
--
Please expand this suggestion. Are you asking me to instantiate a handle through a DBI call and then pass it to DBIx::SearchBuilder::Handle::dbh? Something else? It still doesn't work, incidentally. Show quoted text
> Does the raw dbh work? Knowing what errors you get is likely to be the > first step toward knowing what's wrong