I want to delete a row in my table re_users
and I am getting error below:
ERROR: null value in column "user_id" violates not-null constraint
DETAIL: Failing row contains (5, null, 2014-09-05 06:53:47.804037, 2014-09-05 06:53:47.804037, null, _fetch_mails, minutes, null, Fetchmail Service, (), -1, 2014-09-05 06:53:47, 5, f, f, 5, fetchmail.server).
CONTEXT: SQL statement "UPDATE ONLY "public"."ir_cron" SET "user_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "user_id""
kindly suggest me, how do I resolve it.
Waiting for reply.
Thanks