Skip Menu |

This queue is for tickets about the DBD-Cassandra CPAN distribution.

Report information
The Basics
Id: 104549
Status: resolved
Priority: 0/
Queue: DBD-Cassandra

People
Owner: Nobody in particular
Requestors: dshultz [...] cpan.org
Cc:
AdminCc:

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



Subject: OPCODES and other constants are not being exported
When running the tests using an actual db, I get the following error: t/01-connect.t ... DBI connect('host=localhost','',...) failed: Can't connect to host=localhost: Undefined subroutine &DBD::Cassandra::Protocol::OPCODE_OPTIONS called at /home/dxs/.cpan/build/DBD-Cassandra-0.13-2dJTD4/blib/lib/DBD/Cassandra/Connection.pm line 36. In fact none of the constants are being exported which currently makes this module unusable sadly.
On Tue May 19 15:18:34 2015, DSHULTZ wrote: Show quoted text
> When running the tests using an actual db, I get the following error: > > t/01-connect.t ... DBI connect('host=localhost','',...) failed: Can't > connect to host=localhost: Undefined subroutine > &DBD::Cassandra::Protocol::OPCODE_OPTIONS called at > /home/dxs/.cpan/build/DBD-Cassandra-0.13- > 2dJTD4/blib/lib/DBD/Cassandra/Connection.pm line 36. > > In fact none of the constants are being exported which currently makes > this module unusable sadly.
Interesting. Can you clone the latest version from https://github.com/TvdW/perl-DBD-Cassandra and see if that fixes the issue you're seeing?
Subject: Re: [rt.cpan.org #104549] OPCODES and other constants are not being exported
Date: Tue, 19 May 2015 14:28:45 -0700
To: bug-DBD-Cassandra [...] rt.cpan.org
From: Mr Translucent <djshultz [...] gmail.com>
The error is NOT in the latest git repo. Very interesting, looking at the code I'm not sure why. On Tue, May 19, 2015 at 12:43 PM, Tom van der Woerdt via RT < bug-DBD-Cassandra@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104549 > > > On Tue May 19 15:18:34 2015, DSHULTZ wrote:
> > When running the tests using an actual db, I get the following error: > > > > t/01-connect.t ... DBI connect('host=localhost','',...) failed: Can't > > connect to host=localhost: Undefined subroutine > > &DBD::Cassandra::Protocol::OPCODE_OPTIONS called at > > /home/dxs/.cpan/build/DBD-Cassandra-0.13- > > 2dJTD4/blib/lib/DBD/Cassandra/Connection.pm line 36. > > > > In fact none of the constants are being exported which currently makes > > this module unusable sadly.
> > Interesting. Can you clone the latest version from > https://github.com/TvdW/perl-DBD-Cassandra and see if that fixes the > issue you're seeing? >
On Tue May 19 17:29:26 2015, djshultz@gmail.com wrote: Show quoted text
> The error is NOT in the latest git repo. Very interesting, looking at the > code I'm not sure why. >
This patch fixed it: https://github.com/TvdW/perl-DBD-Cassandra/commit/38bb121801074b36231ee7c11cb9925d87a7f370 I will leave it up to the reader to figure out why.