Skip Menu |
 

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

Report information
The Basics
Id: 33882
Status: open
Priority: 0/
Queue: DBD-RAM

People
Owner: Nobody in particular
Requestors: david [...] davidpashley.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
Content-Disposition: inline
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="oyUTqETQ0mS9luUI"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 5A19B4D8159 for <bug-DBD-RAM [...] rt.cpan.org>; Fri, 7 Mar 2008 12:23:30 -0500 (EST)
Received: (qmail 26561 invoked from network); 7 Mar 2008 17:23:29 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 7 Mar 2008 17:23:29 -0000
Received: from femme.catnip.org.uk (HELO femme.catnip.org.uk) (195.10.223.132) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Mar 2008 09:23:24 -0800
Received: from david by femme.catnip.org.uk with local (Exim 4.63) (envelope-from <david [...] davidpashley.com>) id 1JXgHm-0006Vu-BQ for bug-DBD-RAM [...] rt.cpan.org; Fri, 07 Mar 2008 17:23:10 +0000
Delivered-To: cpan-bug+DBD-RAM [...] diesel.bestpractical.com
Subject: Making it work
User-Agent: Mutt/1.5.13 (2006-08-11)
Return-Path: <david [...] davidpashley.com>
X-Original-To: bug-DBD-RAM [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Fri, 7 Mar 2008 17:23:10 +0000
X-Spam-Level: *
Message-Id: <20080307172309.GU10666 [...] femme.catnip.org.uk>
To: bug-DBD-RAM [...] rt.cpan.org
From: David Pashley <david [...] davidpashley.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
X-RT-Original-Encoding: us-ascii
Content-Length: 256
Download (untitled) / with headers
text/plain 256b
Was getting the dreaded "Can't find STORE at DBD::File line 280" or similar. The attached patch make it work again. I didn't have chance to work out which bit broke it. -- David Pashley david@davidpashley.com Nihil curo de ista tua stulta superstitione.
content-type: text/plain; charset="utf-8"
content-disposition: attachment; filename="patch"
X-RT-Original-Encoding: us-ascii
Content-Length: 2916
Download patch
text/plain 2.8k

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
X-Spam-Status: No, hits=-1.1 required=8.0 tests=BAYES_00,HTML_MESSAGE,MIME_HTML_ONLY,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-30564-1204910626-1523.33882-4-0 [...] rt.cpan.org>
References: <RT-Ticket-33882 [...] rt.cpan.org> <20080307172309.GU10666 [...] femme.catnip.org.uk> <rt-3.6.HEAD-30564-1204910626-1523.33882-4-0 [...] rt.cpan.org>
Content-Type: text/html; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id B14EF4D81D6 for <bug-DBD-RAM [...] rt.cpan.org>; Fri, 7 Mar 2008 12:31:33 -0500 (EST)
Received: (qmail 30330 invoked from network); 7 Mar 2008 17:31:32 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 7 Mar 2008 17:31:32 -0000
Received: from mail6.sea5.speakeasy.net (HELO mail6.sea5.speakeasy.net) (69.17.117.8) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Mar 2008 09:31:27 -0800
Received: (qmail 1619 invoked from network); 7 Mar 2008 17:29:26 -0000
Received: from c-24-21-138-5.hsd1.mn.comcast.net (HELO [24.21.138.5]) (jeff [...] vpservices.com [...] [24.21.138.5]) (envelope-sender <jeff [...] vpservices.com>) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for <bug-DBD-RAM [...] rt.cpan.org>; 7 Mar 2008 17:29:26 -0000
Delivered-To: cpan-bug+DBD-RAM [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #33882] Making it work
User-Agent: Icedove 1.5.0.10 (X11/20070329)
Return-Path: <jeff [...] vpservices.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-DBD-RAM [...] rt.cpan.org
Date: Fri, 07 Mar 2008 17:29:26 +0000
X-Spam-Level: *
Message-Id: <47D17B76.30705 [...] vpservices.com>
To: bug-DBD-RAM [...] rt.cpan.org, mailto:david [...] davidpashley.com
Content-Transfer-Encoding: quoted-printable
From: Jeff Zucker <jeff [...] vpservices.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-30548-1204911103-1319.33882-0-0 [...] rt.cpan.org>
Content-Length: 4442
Sorry, I should have removed DBD::RAM from CPAN.  It has been completely replaced by my one of my other modules - DBD::AnyData which does everything it does and more.

--
Jeff

david@davidpashley.com via RT wrote: Show quoted text
Fri Mar 07 12:23:45 2008: Request 33882 was acted upon.
Transaction: Ticket created by david@davidpashley.com
       Queue: DBD-RAM
     Subject: Making it work
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: david@davidpashley.com
      Status: new
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=33882 >


Was getting the dreaded "Can't find STORE at DBD::File line 280" or
similar. The attached patch make it work again. I didn't have chance to
work out which bit broke it.

  

--- /usr/share/perl5/DBD/RAM.pm 2008-03-07 17:18:59.000000000 +0000 +++ RAM.pm 2008-03-07 17:18:57.000000000 +0000 @@ -26,8 +26,6 @@ use vars qw($VERSION $err $errstr $sqlstate $drh $ramdata); -use base qw(DBD::File); - $VERSION = '0.07'; $err = 0; # holds error code for DBI::err @@ -35,26 +33,26 @@ $sqlstate = ""; # holds SQL state for DBI::state $drh = undef; # holds driver handle once initialized -#sub driver { -# return $drh if $drh; # already created - return same one -# my($class, $attr) = @_; -# $class .= "::dr"; -# $drh = DBI::_new_drh($class, { -# 'Name' => 'RAM', -# 'Version' => $VERSION, -# 'Err' => \$DBD::RAM::err, -# 'Errstr' => \$DBD::RAM::errstr, -# 'State' => \$DBD::RAM::sqlstate, -# 'Attribution' => 'DBD::RAM by Jeff Zucker', -# }); -# return $drh; -#} +sub driver { + return $drh if $drh; # already created - return same one + my($class, $attr) = @_; + $class .= "::dr"; + $drh = DBI::_new_drh($class, { + 'Name' => 'RAM', + 'Version' => $VERSION, + 'Err' => \$DBD::RAM::err, + 'Errstr' => \$DBD::RAM::errstr, + 'State' => \$DBD::RAM::sqlstate, + 'Attribution' => 'DBD::RAM by Jeff Zucker', + }); + return $drh; +} package DBD::RAM::dr; # ====== DRIVER ====== $DBD::RAM::dr::imp_data_size = 0; -use base qw(DBD::File::dr); +@DBD::RAM::dr::ISA = qw(DBD::File::dr); sub connect { my($drh, $dbname, $user, $auth, $attr)= @_; @@ -90,7 +88,7 @@ $DBD::RAM::db::imp_data_size = 0; -use base qw(DBD::File::db); +@DBD::RAM::db::ISA = qw(DBD::File::db); sub disconnect{ $DBD::RAM::ramdata = {};} @@ -791,13 +789,13 @@ package DBD::RAM::st; # ====== STATEMENT ====== $DBD::RAM::st::imp_data_size = 0; -use base qw(DBD::File::st); +@DBD::RAM::st::ISA = qw(DBD::File::st); package DBD::RAM::Statement; #@DBD::RAM::Statement::ISA = qw(SQL::Statement); -#@DBD::RAM::Statement::ISA = qw(SQL::Statement DBD::File::Statement); -use base qw(DBD::File::Statement); +@DBD::RAM::Statement::ISA = qw(SQL::Statement DBD::File::Statement); +#@DBD::RAM::Statement::ISA = qw(DBD::File::Statement); sub open_table ($$$$$) { my($self, $data, $tname, $createMode, $lockMode) = @_; @@ -864,9 +862,9 @@ package DBD::RAM::Table; -#@DBD::RAM::Table::ISA = qw(SQL::Eval::Table); +@DBD::RAM::Table::ISA = qw(SQL::Eval::Table); #@DBD::RAM::Statement::Table::ISA = qw(SQL::Eval::Table DBD::File::Table); -use base qw(DBD::File::Table); +#@DBD::RAM::Statement::Table::ISA = qw(DBD::File::Table); ################################## # fetch_row() @@ -1006,7 +1004,7 @@ if $data->{$table_name}; return 1; } - return DBD::File::Table::drop( $self ); + return DBD::File::Table::drop( $self, $data ); } ##################################

CC: bug-DBD-RAM [...] rt.cpan.org, mailto:
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <47D17B76.30705 [...] vpservices.com>
Content-Disposition: inline
References: <RT-Ticket-33882 [...] rt.cpan.org> <20080307172309.GU10666 [...] femme.catnip.org.uk> <rt-3.6.HEAD-30564-1204910626-1523.33882-4-0 [...] rt.cpan.org> <47D17B76.30705 [...] vpservices.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 2F3F54D80AC for <bug-DBD-RAM [...] rt.cpan.org>; Fri, 7 Mar 2008 12:56:07 -0500 (EST)
Received: (qmail 11033 invoked from network); 7 Mar 2008 17:56:06 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 7 Mar 2008 17:56:06 -0000
Received: from femme.catnip.org.uk (HELO femme.catnip.org.uk) (195.10.223.132) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Mar 2008 09:56:02 -0800
Received: from david by femme.catnip.org.uk with local (Exim 4.63) (envelope-from <david [...] davidpashley.com>) id 1JXgnR-00078a-3K; Fri, 07 Mar 2008 17:55:53 +0000
Delivered-To: cpan-bug+DBD-RAM [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #33882] Making it work
User-Agent: Mutt/1.5.13 (2006-08-11)
Return-Path: <david [...] davidpashley.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-DBD-RAM [...] rt.cpan.org
Date: Fri, 7 Mar 2008 17:55:53 +0000
X-Spam-Level: *
Message-Id: <20080307175552.GV10666 [...] femme.catnip.org.uk>
To: Jeff Zucker <jeff [...] vpservices.com>
Content-Transfer-Encoding: 8bit
From: David Pashley <david [...] davidpashley.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-30531-1204912575-1475.33882-0-0 [...] rt.cpan.org>
Content-Length: 443
Download (untitled) / with headers
text/plain 443b
On Mar 07, 2008 at 17:29, Jeff Zucker praised the llamas by saying: Show quoted text
> Sorry, I should have removed DBD::RAM from CPAN.  It has been completely > replaced by my one of my other modules - DBD::AnyData which does everything it > does and more. >
All but the one feature I wanted; perl hashes. :) At least I couldn't see anything in the docs for using them. -- David Pashley david@davidpashley.com Nihil curo de ista tua stulta superstitione.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.