From: | "Joe Conway" <jconway2(at)home(dot)com> |
---|---|
To: | "Joseph Shraibman" <jks(at)selectacast(dot)net>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: 'record old is unassigned yet' when using trigger in 7.1.1 |
Date: | 2001-05-09 23:55:29 |
Message-ID: | 00c901c0d8e3$87b7f650$54d410ac@jecw2k1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> 2) Why when I use psql does it look like this:
> playpen=# create function utbl_set_statchangedate() returns opaque as
> playpen-# 'begin
> playpen'# IF TG_OP = \'INSERT\'
> playpen'# THEN
> playpen'# NEW.statchangedate := CURRENT_DATE;
> playpen'# ELSE IF OLD.status <> NEW.status
> playpen'# THEN
> playpen'#
> ABORT BEGIN CLUSTER COMMIT CREATE DELETE EXPLAIN
<snip>
> ? What's with the \nABORT .. UPDATE ?
I've seen this before also. I think psql gets confused and prints out some
sort of keyword list. Try saving your function to a file, and then use \i,
e.g.
playpen'# \i /path/to/your/script/scriptname.sql
-- Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-05-10 00:12:51 | Re: 'record old is unassigned yet' when using trigger in 7.1.1 |
Previous Message | Joe Conway | 2001-05-09 23:49:33 | Re: 'record old is unassigned yet' when using trigger in 7.1.1 |