Skip Menu |

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

Report information
The Basics
Id: 36235
Status: resolved
Priority: 0/
Queue: CGI-Session

People
Owner: MARKSTOS [...] cpan.org
Requestors: r.k [...] live.ru
Cc:
AdminCc:

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



Subject: remove() function in CGI::Session::Driver::DBI
remove() function of CGI::Session::Driver::DBI don't use IdColName, so if you set IdColName diffrent from 'id', on session delete - error occur. my $rc = $self->{Handle}->do( 'DELETE FROM '. $self->table_name .' WHERE id =?',{},$sid );
On Tue May 27 21:16:02 2008, rkv wrote: Show quoted text
> remove() function of CGI::Session::Driver::DBI don't use IdColName, so > if you set IdColName diffrent from 'id', on session delete - error occur. > > my $rc = $self->{Handle}->do( 'DELETE FROM '. $self->table_name .' WHERE > id =?',{},$sid );
This was fixed some time ago, apparently. The code in 4.37 looks like this: my $rc = $self->{Handle}->do( 'DELETE FROM ' . $self->table_name . " WHERE $self->{IdColName}= ?", {}, $sid ) Mark