Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 19820
Status: resolved
Priority: 0/
Queue: BerkeleyDB

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

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



Subject: db_pget on secondary db returns a unpacked recno
Hello, I created a secondary db which is of type Hash and associated it with a primary Recno db. <code> $sec->db_pget($sk, $pk, $pv) </code> returns $pv successfully, while $pk is a unpacked recno, it should be an SV within 32-bit interger recno. By <code> unpack("L", $pk) </code>, I got more reasonable primary key. Passing unpacked $pk to primary database has no problem, while it prints warning message for $^W. --- BR / Dongxu
On Sat Jun 10 22:22:10 2006, DONGXU wrote: Show quoted text
> Hello, > > I created a secondary db which is of type Hash and associated it with a > primary Recno db. <code> $sec->db_pget($sk, $pk, $pv) </code> returns > $pv successfully, while $pk is a unpacked recno, it should be an SV > within 32-bit interger recno. By <code> unpack("L", $pk) </code>, I got > more reasonable primary key. > Passing unpacked $pk to primary database has no problem, while it prints > warning message for $^W. > > --- > BR / Dongxu
Hi - just uploaded a new version of my module to CPAN. Can you see if that resolves this issue please? Paul
Subject: Re: [rt.cpan.org #19820] db_pget on secondary db returns a unpacked recno
Date: Mon, 12 Jun 2006 14:03:17 +0800
To: bug-BerkeleyDB [...] rt.cpan.org
From: "Dongxu Ma" <dongxu.ma [...] gmail.com>
On 6/12/06, Paul Marquess via RT <bug-BerkeleyDB@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=19820 > > > On Sat Jun 10 22:22:10 2006, DONGXU wrote:
> > Hello, > > > > I created a secondary db which is of type Hash and associated it with a > > primary Recno db. <code> $sec->db_pget($sk, $pk, $pv) </code> returns > > $pv successfully, while $pk is a unpacked recno, it should be an SV > > within 32-bit interger recno. By <code> unpack("L", $pk) </code>, I got > > more reasonable primary key. > > Passing unpacked $pk to primary database has no problem, while it prints > > warning message for $^W. > > > > --- > > BR / Dongxu
> > Hi - just uploaded a new version of my module to CPAN. Can you see if > that resolves this issue please?
tried just now. Fixed;-) Paul Show quoted text
>
-- Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu
On Mon Jun 12 02:03:42 2006, dongxu.ma@gmail.com wrote: Show quoted text
> On 6/12/06, Paul Marquess via RT <bug-BerkeleyDB@rt.cpan.org> wrote:
> > > > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=19820 > > > > > On Sat Jun 10 22:22:10 2006, DONGXU wrote:
> > > Hello, > > > > > > I created a secondary db which is of type Hash and associated it
with a Show quoted text
> > > primary Recno db. <code> $sec->db_pget($sk, $pk, $pv) </code> returns > > > $pv successfully, while $pk is a unpacked recno, it should be an SV > > > within 32-bit interger recno. By <code> unpack("L", $pk) </code>,
I got Show quoted text
> > > more reasonable primary key. > > > Passing unpacked $pk to primary database has no problem, while it
prints Show quoted text
> > > warning message for $^W. > > > > > > --- > > > BR / Dongxu
> > > > Hi - just uploaded a new version of my module to CPAN. Can you see if > > that resolves this issue please?
> > > tried just now. Fixed;-)
more detail: fix for db_pget, seems still open for c_pget Show quoted text
> > Paul
> >
> > >
On Mon Jun 12 03:00:11 2006, DONGXU wrote: Show quoted text
> On Mon Jun 12 02:03:42 2006, dongxu.ma@gmail.com wrote:
> > On 6/12/06, Paul Marquess via RT <bug-BerkeleyDB@rt.cpan.org> wrote:
> > > > > > > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=19820 > > > > > > > On Sat Jun 10 22:22:10 2006, DONGXU wrote:
> > > > Hello, > > > > > > > > I created a secondary db which is of type Hash and associated it
> with a
> > > > primary Recno db. <code> $sec->db_pget($sk, $pk, $pv) </code>
returns Show quoted text
> > > > $pv successfully, while $pk is a unpacked recno, it should be an SV > > > > within 32-bit interger recno. By <code> unpack("L", $pk) </code>,
> I got
> > > > more reasonable primary key. > > > > Passing unpacked $pk to primary database has no problem, while it
> prints
> > > > warning message for $^W. > > > > > > > > --- > > > > BR / Dongxu
> > > > > > Hi - just uploaded a new version of my module to CPAN. Can you see if > > > that resolves this issue please?
> > > > > > tried just now. Fixed;-)
> more detail: > fix for db_pget, seems still open for c_pget
BerkeleyDB 0.29 just uploaded to CPAN with a fix for c_pget included. Paul