Skip Menu |
 

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

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

People
Owner: RSAVAGE [...] cpan.org
Requestors: chris [...] clotho.com
Cc:
AdminCc:

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



Subject: Ability to specify MySQL column names
Download (untitled) / with headers
text/plain 477b
I would like to adapt CGI::Session::MySQL to my own, existing session table. I hope to make my existing code just a wrapper around CGI::Session. However, for backward compatibility, I don't want to change my column names, which are "session_key", "session_time", and "session_data". I request that the MySQL column names become modifiable constants, instead of hardcoded as "id" and "a_session". This can be easily accomplished by the patch that I will attach in a moment.
From: chris [...] clotho.com
Download (untitled) / with headers
text/plain 144b
Here is a patch to implement the wish that I just submitted. I have not tested it, but it's so simple and obvious that I think it should work.
Download patch
application/octet-stream 2.6k

Message body not shown because it is not plain text.

From: "Sherzod Ruzmetov" <sherzodr [...] handalak.com>
To: <bug-CGI-Session [...] rt.cpan.org>
Subject: RE: [cpan #2224] Ability to specify MySQL column names
Date: Fri, 14 Mar 2003 13:42:41 -0500
RT-Send-Cc:
Download (untitled) / with headers
text/plain 918b
Hi, Thanks for the patch. I'll make sure to apply it for the next release of the library. sherzod : : : This message about CGI-Session was sent to you by guest : <> via rt.cpan.org : : Full context and any attached attachments can be found at: : <URL: https://rt.cpan.org/Ticket/Display.html?id=2224 > : : I would like to adapt CGI::Session::MySQL to my own, : existing session table. I hope to make my existing code : just a wrapper around CGI::Session. However, for : backward compatibility, I don't want to change my column : names, which are "session_key", "session_time", and : "session_data". : : I request that the MySQL column names become modifiable : constants, instead of hardcoded as "id" and "a_session". : This can be easily accomplished by the patch that I will : attach in a moment. : : :
From: mark [...] summersault.com
Download (untitled) / with headers
text/plain 954b
[guest - Thu Mar 13 13:00:32 2003]: Show quoted text
> I would like to adapt CGI::Session::MySQL to my own, existing session > table. I hope to make my existing code just a wrapper around > CGI::Session. However, for backward compatibility, I don't want to > change my column names, which are "session_key", "session_time", > and "session_data". > > I request that the MySQL column names become modifiable constants, > instead of hardcoded as "id" and "a_session". This can be easily > accomplished by the patch that I will attach in a moment.
Chris, I have some interest in adding support for custom column names to CGI::Session::PureSQL. Do you think this driver would appeal to you if I did that? It is different than the ::MySQL module because it stores data in the usual SQL way: one value per column. OTOH, Perhaps you could use the current data model of either ::MySQL or ::PureSQL, and create a view the column names you want. Mark
Download (untitled) / with headers
text/plain 967b
On Thu Mar 13 13:00:32 2003, guest wrote: Show quoted text
> I would like to adapt CGI::Session::MySQL to my own, existing session > table. I hope to make my existing code just a wrapper around > CGI::Session. However, for backward compatibility, I don't want
to Show quoted text
> change my column names, which are "session_key", "session_time", > and "session_data". > > I request that the MySQL column names become modifiable constants, > instead of hardcoded as "id" and "a_session". This can be easily > accomplished by the patch that I will attach in a moment.
Chris, Are you still interested this ancient suggestion for CGI::Session? I agree it's a good idea and am helping Sherzod maintain CGI::Session now. If so, I think we could accept a patch against the 4.x branch, using the OO-style API. The patch would need docs and automated tests to go in. I expect to put out another release in the next couple of weeks. Thanks! Mark
Download (untitled) / with headers
text/plain 1.1k
I'm giving this to RSAVAGE, who said he would have time to look at this. Mark On Fri Mar 03 20:10:13 2006, MARKSTOS wrote: Show quoted text
> On Thu Mar 13 13:00:32 2003, guest wrote:
> > I would like to adapt CGI::Session::MySQL to my own, existing session > > table. I hope to make my existing code just a wrapper around > > CGI::Session. However, for backward compatibility, I don't want
> to
> > change my column names, which are "session_key", "session_time", > > and "session_data". > > > > I request that the MySQL column names become modifiable constants, > > instead of hardcoded as "id" and "a_session". This can be easily > > accomplished by the patch that I will attach in a moment.
> > Chris, > > Are you still interested this ancient suggestion for CGI::Session? I > agree it's a good idea and am helping Sherzod maintain CGI::Session > now. > > If so, I think we could accept a patch against the 4.x branch, using > the OO-style API. The patch would need docs and automated tests to go > in. > > I expect to put out another release in the next couple of weeks. > > Thanks! > > Mark > >
It appears that Ron Savage has implemented this now in SVN. Mark


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.