Typo sidebars

I’ve found a weird problem with a sidebar I’ve been working on.

It doesn’t want to load any more.

I’ve installed and removed the sidebar a few times, and now when I try
and
install the sidebar, I get this error in the log.

ActiveRecord::StatementInvalid (PGError: ERROR: duplicate key violates
unique constraint “sidebars_pkey”
: INSERT INTO sidebars (“config”, “staged_position”, “type”,
“active_position”, “blog_id”) VALUES('—
user:
title:
folder:
', NULL, ‘BloglinesSidebar’, NULL, 1)):

This error makes no sense, because I’m not actually specifying an id,
the
database should just pick the next one in sequence. I thought it might
have been a sequence problem, but that’s fine, and when I run the same
INSERT into the database, it works just fine.

typo=> begin; BEGIN
typo=> INSERT INTO sidebars (“config”, “staged_position”, “type”,
“active_position”, “blog_id”) VALUES(‘—
typo’> user:
typo’> title:
typo’> folder:
typo’> ', NULL, ‘BloglinesSidebar’, NULL, 1);
INSERT 117605 1
typo=> abort;
ROLLBACK

I’m kinda stumped.

Matt R. [email protected] Visit my blog!

He’s a time-tossed moralistic paranormal investigator who hides his
scarred face behind a mask. She’s a warm-hearted insomniac soap star
who inherited a spooky stately manor from her late maiden aunt. They
fight crime!

Matt R. [email protected] writes:

“active_position”, “blog_id”) VALUES('—
user:
title:
folder:
', NULL, ‘BloglinesSidebar’, NULL, 1)):

This error makes no sense, because I’m not actually specifying an id, the
database should just pick the next one in sequence. I thought it might
have been a sequence problem, but that’s fine, and when I run the same
INSERT into the database, it works just fine.

Have you tried it with a different RDBMS? And which version of typo
are you using?

I’d rather stick with postgres, as it’s what I’m familiar with. I’m
using 1253, should I upgrade?

I’ll give it a try with sqlite3 tommorrow if I have time.

Matt R. [email protected] writes:

I’d rather stick with postgres, as it’s what I’m familiar with.

It’s just for testing purposes, we need to nail down whether it’s
database specific, so trying another one temporarily will help with
that.

I’m using 1253, should I upgrade?

Nope, no need.