Opened 9 years ago

Closed 9 years ago

revtreeplugin error on 'show deleted branches'

Reported by: Owned by: nulleke76@… eblot normal RevtreePlugin normal 0.11

Description

When I enable the 'show deleted branches' option I receive the following error:

Trac detected an internal error:

OperationalError: ERROR: column "value" is of type text but expression is of type boolean LINE 1: ...RT INTO session_attribute (sid,authenticated,name,value) VAL...

HINT: You will need to rewrite or cast the expression.

trac svn latest, revtreeplugin svn latest

comment:1 Changed 9 years ago by eblot

Well, I never tried to use the plugin with a non-SQLite DB. Are you using PostgreSQL ?

comment:2 follow-up: ↓ 3 Changed 9 years ago by nulleke76@…

Yes, I am using postgresql.

comment:3 in reply to: ↑ 2 Changed 9 years ago by eblot

Yes, I am using postgresql.

Can you try the attached patch ?

Changed 9 years ago by eblot

Patch proposal to fix this issue

comment:4 Changed 9 years ago by eblot

You may also need to clean up the database if you get the error from a previous session:

delete from session_attribute where name='revtree.showdel';


comment:5 Changed 9 years ago by nulleke76@…

That patch seem to do the trick. It doesn't give the error anymore.

comment:6 Changed 9 years ago by eblot

• Resolution set to fixed
• Status changed from new to closed

Ok thanks for the feedback. Fixed in [2832]