Skip Menu |

This queue is for tickets about the Net-Google-SafeBrowsing2 CPAN distribution.

Report information
The Basics
Id: 73899
Status: rejected
Priority: 0/
Queue: Net-Google-SafeBrowsing2

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

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



Subject: DBI synopsis lists MySQL example instead of DBI example
Date: Wed, 11 Jan 2012 07:22:39 -0700
To: bug-Net-Google-SafeBrowsing2 [...] rt.cpan.org
From: Ben <datatap [...] gmail.com>
Hi thanks for your great module but I'm having trouble getting it to use DBI. First I noticed on this page and in the actual file you give the wrong synopsis example, it's for MYSQL instead of DBI: http://search.cpan.org/~jsobrier/Net-Google-SafeBrowsing2-1.04/lib/Net/Google/SafeBrowsing2/DBI.pm SYNOPSIS ^ use Net::Google::SafeBrowsing2::MySQL; my $storage = Net::Google::SafeBrowsing2::MySQL->new(host => '127.0.0.1', database => 'GoogleSafeBrowsingv2'); ... $storage->close(); I went ahead and tried using this, figuring it might work: my $storage = Net::Google::SafeBrowsing2::DBI->new(file => 'google-v2.db'); but my script is giving the error: Can't call method "selectall_arrayref" on an undefined value at /usr/local/lib/p erl5/site_perl/5.8.9/Net/Google/SafeBrowsing2/DBI.pm line 463. Some more information: perl -v This is perl, v5.8.9 built for amd64-freebsd And the full code of my script is: ---------------------------------------------------------------------- #!/usr/bin/perl use Net::Google::SafeBrowsing2; use Net::Google::SafeBrowsing2::DBI; $apikey="........................"; $dbfile = "google-v2.db"; my $storage = Net::Google::SafeBrowsing2::DBI->new(file => $dbfile); my $gsb = Net::Google::SafeBrowsing2->new( key => $apikey, storage => $storage, ); $gsb->update(); ---------------------------------------------------------------------- Thanks for any help you can give. Ben
Subject: Re: [rt.cpan.org #73899] AutoReply: DBI synopsis lists MySQL example instead of DBI example
Date: Mon, 17 Sep 2012 03:12:10 -0700
To: bug-Net-Google-SafeBrowsing2 [...] rt.cpan.org
From: Ben <datatap [...] gmail.com>
Please close this bug report, I misunderstood what DBI was, I thought it was a database to sqlite. On Wed, Jan 11, 2012 at 7:22 AM, Bugs in Net-Google-SafeBrowsing2 via RT < bug-Net-Google-SafeBrowsing2@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "DBI synopsis lists MySQL example instead of DBI example", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #73899]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=73899 > > Please include the string: > > [rt.cpan.org #73899] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Net-Google-SafeBrowsing2@rt.cpan.org > > ------------------------------------------------------------------------- > Hi thanks for your great module but I'm having trouble getting it to use > DBI. > > First I noticed on this page and in the actual file you give the wrong > synopsis example, it's for MYSQL instead of DBI: > > http://search.cpan.org/~jsobrier/Net-Google-SafeBrowsing2-1.04/lib/Net/Google/SafeBrowsing2/DBI.pm > > SYNOPSIS ^ > use Net::Google::SafeBrowsing2::MySQL; > > my $storage = Net::Google::SafeBrowsing2::MySQL->new(host => '127.0.0.1', > database => 'GoogleSafeBrowsingv2'); > ... > $storage->close(); > > > I went ahead and tried using this, figuring it might work: > > my $storage = Net::Google::SafeBrowsing2::DBI->new(file => > 'google-v2.db'); > > but my script is giving the error: > > Can't call method "selectall_arrayref" on an undefined value at > /usr/local/lib/p erl5/site_perl/5.8.9/Net/Google/SafeBrowsing2/DBI.pm line > 463. > > Some more information: > > perl -v > This is perl, v5.8.9 built for amd64-freebsd > > And the full code of my script is: > > ---------------------------------------------------------------------- > > #!/usr/bin/perl > > use Net::Google::SafeBrowsing2; > use Net::Google::SafeBrowsing2::DBI; > > $apikey="........................"; > $dbfile = "google-v2.db"; > > my $storage = Net::Google::SafeBrowsing2::DBI->new(file => $dbfile); > > my $gsb = Net::Google::SafeBrowsing2->new( > key => $apikey, > storage => $storage, > ); > > $gsb->update(); > > ---------------------------------------------------------------------- > > Thanks for any help you can give. > > Ben > >