Opened 10 years ago

Closed 9 years ago

revtreeplugin error on 'show deleted branches'

Reported by: Owned by: nulleke76@… Emmanuel Blot 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 10 years ago by Emmanuel Blot

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

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

Yes, I am using postgresql.

comment:3 in reply to:  2 Changed 10 years ago by Emmanuel Blot

Yes, I am using postgresql.

Can you try the attached patch ?

Changed 10 years ago by Emmanuel Blot

Patch proposal to fix this issue

comment:4 Changed 10 years ago by Emmanuel Blot

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 10 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 Emmanuel Blot

Resolution: → fixed new → closed

Ok thanks for the feedback. Fixed in [2832]

Modify Ticket

Change Properties