From: | books at ejurka(dot)com (Kris Jurka) |
---|---|
To: | |
Subject: | [Pljava-dev] ResultSet is read-only error for Trigger? |
Date: | 2008-03-05 17:31:54 |
Message-ID: | Pine.BSO.4.64.0803051226440.19761@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
On Wed, 5 Mar 2008, Mike Toler wrote:
> I'm trying to do a very simple trigger before moving onto the complex
> stuff that I need pljava for.
>
> CREATE TRIGGER provisionorder_trigger
> AFTER UPDATE
> ON serviceproviderprovisioned
> FOR EACH ROW
> EXECUTE PROCEDURE provisionorder();
>
> When I update my row, I see the following error:
> ERROR: org.postgresql.pljava.jdbc.UnsupportedFeatureException: Feature
> not supported: ResultSet is read-only
>
I think the problem is that you're using an after trigger instead of a
before trigger. Before the update you can manipulate the values and have
them persisted, but after the update you get the values that did come
through and it's read-only at that point.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Toler | 2008-03-05 18:09:47 | [Pljava-dev] ResultSet is read-only error for Trigger? |
Previous Message | Mike Toler | 2008-03-05 17:03:09 | [Pljava-dev] ResultSet is read-only error for Trigger? |