Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Session-Store-DBI CPAN distribution.

Report information
The Basics
Id: 15888
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Session-Store-DBI

People
Owner: Nobody in particular
Requestors: m.romani [...] spinsoft.it
Cc:
AdminCc:

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

Attachments
session_transcripts.zip



Subject: t/04dbi.t failure
When running nmake test for the first time, DBI says it can't connect to the database. On the second run, the error is instead 'no such table sessions(1)'. Looking at the code in t/04dbi.t it seems the create table statement is wrong, so I changed it to CREATE TABLE sessions (id TEXT PRIMARY KEY, session_data TEXT, expires INT); (the table should be named sessions instead of session and the field session should be named session_data instead). The error on the first run remains. The second run is ok instead.
Download session_transcripts.zip
application/x-zip-compressed 4.6k

Message body not shown because it is not plain text.

[guest - Thu Nov 17 05:32:21 2005]: Show quoted text
> When running nmake test for the first time, DBI says it can't connect > to the database. > > On the second run, the error is instead 'no such table sessions(1)'. > > Looking at the code in t/04dbi.t it seems the create table statement > is wrong, so I changed it to > > CREATE TABLE sessions (id TEXT PRIMARY KEY, session_data TEXT, expires > INT); > > (the table should be named sessions instead of session and the field > session should be named session_data instead). > > The error on the first run remains. > The second run is ok instead.
In the previous attachments t/05cdbi.t was failing too. It was beacuse I had Class-DBI 0.95 After upgrading to Class-DBI 0.96 it doesn't fail.
[guest - Thu Nov 17 05:32:21 2005]: Show quoted text
> When running nmake test for the first time, DBI says it can't connect > to the database. > > On the second run, the error is instead 'no such table sessions(1)'. > > Looking at the code in t/04dbi.t it seems the create table statement > is wrong, so I changed it to > > CREATE TABLE sessions (id TEXT PRIMARY KEY, session_data TEXT, expires > INT); > > (the table should be named sessions instead of session and the field > session should be named session_data instead). > > The error on the first run remains. > The second run is ok instead.
Should be fixed in 0.02.