GNOME Bugzilla – Bug 318440
Planner crashes whent exporting a project in database.
Last modified: 2008-01-19 21:44:09 UTC
When I import a project from database, and change it, I can not export it to DB again. This error message appears: ERROR: insert or update on table "calendar" violates foreign key constraint "project_proj_id" DETAIL: Key (proj_id)=(3) is not present in table "project". CONTEXT: SQL statement "UPDATE ONLY "public"."calendar" SET "day_sun" = DEFAULT WHERE "day_sun" = $1" SQL statement "DELETE FROM ONLY "public"."daytype" WHERE "proj_id" = $1" (The proj_id field of calendar table has a foreign key to proj_id of project table.OS= Fedora Core 4.0)
This is a bug in postgresql and has been solved in version 8.2.5.