Bug #57

The SqliteStorage can't store empty messages thus resulting in a crash

Added by EgS over 4 years ago. Updated over 3 years ago.

Status:Closed Start date:
Priority:High Due date:
Assignee:EgS % Done:

0%

Category:Quassel Core
Target version:0.2.0-alpha1
Version: OS:

Description

The Current Schema of the SqliteStorage does not allow empty messages (see Add. Info.). But empty messages are not disallowed by IRC protocoll.
Obviously the schema needs to be updated. I'm deferring this until Kaffedoktor has finished the FirstRun Whizzard.

Additional information:

Currentbacklog Table:

CREATE TABLE backlog (
messageid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
time INTEGER NOT NULL,
bufferid INTEGER NOT NULL,
type INTEGER NOT NULL,
flags INTEGER NOT NULL,
senderid INTEGER NOT NULL,
message TEXT NOT NULL)

History

#1 Updated by EgS over 4 years ago

Ok this basically sucks.

In order to fix this. The definition of backlog.message would have to be altered. But sqlite doesn't support this alteration of tables... -.-

Have to think of a userfriendly solution, of how to address those issues when we have real users...
For now it will probably result in a recreation of the tables.

#2 Updated by EgS over 4 years ago

Fixed in r366

Also available in: Atom PDF