Skip Menu |

This queue is for tickets about the CGI-Session-Driver-pure_sql CPAN distribution.

Report information
The Basics
Id: 28027
Status: resolved
Priority: 0/
Queue: CGI-Session-Driver-pure_sql

People
Owner: MARKSTOS [...] cpan.org
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.62
Fixed in: 0.62



Subject: PATCH: fix when cookie is present but DB row is missing
The following patch fixes a bug when a cookie is present but the DB row is missing. I'll release it when I get chance. I should also look at using "prepare_cached", like the DBI driver does. diff -rN -u old-alphasite/perllib/CGI/Session/Driver/pure_sql.pm new-alphasite/perllib/CGI/Session/Driver/pure_sql.pm --- old-alphasite/perllib/CGI/Session/Driver/pure_sql.pm 2007-07-06 18:21:50.000000000 -0400 +++ new-alphasite/perllib/CGI/Session/Driver/pure_sql.pm 2007-07-06 18:21:50.000000000 -0400 @@ -106,7 +106,8 @@ return undef; } - + return 0 unless $data; + my $thawed_data = $SERIALIZER->thaw( $data ); unless ( defined $thawed_data ) { return $self->set_error( "couldn't freeze data: " . $SERIALIZER->errstr() );
Subject: also: add a note about clear()
From: MARKSTOS [...] cpan.org
Also, add a note that the clear() method doesn't work with this driver, or try to fix that. Mark
Releasing today.