Skip to content

Commit d84c584

Browse files
committed
Revert fd2ace8
Seems we want to document '=' plpgsql assignment instead.
1 parent 6286526 commit d84c584

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3932,20 +3932,20 @@ CREATE OR REPLACE FUNCTION update_emp_view() RETURNS TRIGGER AS $$
39323932
DELETE FROM emp WHERE empname = OLD.empname;
39333933
IF NOT FOUND THEN RETURN NULL; END IF;
39343934

3935-
OLD.last_updated := now();
3935+
OLD.last_updated = now();
39363936
INSERT INTO emp_audit VALUES('D', user, OLD.*);
39373937
RETURN OLD;
39383938
ELSIF (TG_OP = 'UPDATE') THEN
39393939
UPDATE emp SET salary = NEW.salary WHERE empname = OLD.empname;
39403940
IF NOT FOUND THEN RETURN NULL; END IF;
39413941

3942-
NEW.last_updated := now();
3942+
NEW.last_updated = now();
39433943
INSERT INTO emp_audit VALUES('U', user, NEW.*);
39443944
RETURN NEW;
39453945
ELSIF (TG_OP = 'INSERT') THEN
39463946
INSERT INTO emp VALUES(NEW.empname, NEW.salary);
39473947

3948-
NEW.last_updated := now();
3948+
NEW.last_updated = now();
39493949
INSERT INTO emp_audit VALUES('I', user, NEW.*);
39503950
RETURN NEW;
39513951
END IF;
@@ -4030,10 +4030,10 @@ AS $maint_sales_summary_bytime$
40304030
-- Work out the increment/decrement amount(s).
40314031
IF (TG_OP = 'DELETE') THEN
40324032

4033-
delta_time_key := OLD.time_key;
4034-
delta_amount_sold := -1 * OLD.amount_sold;
4035-
delta_units_sold := -1 * OLD.units_sold;
4036-
delta_amount_cost := -1 * OLD.amount_cost;
4033+
delta_time_key = OLD.time_key;
4034+
delta_amount_sold = -1 * OLD.amount_sold;
4035+
delta_units_sold = -1 * OLD.units_sold;
4036+
delta_amount_cost = -1 * OLD.amount_cost;
40374037

40384038
ELSIF (TG_OP = 'UPDATE') THEN
40394039

@@ -4045,17 +4045,17 @@ AS $maint_sales_summary_bytime$
40454045
OLD.time_key, NEW.time_key;
40464046
END IF;
40474047

4048-
delta_time_key := OLD.time_key;
4049-
delta_amount_sold := NEW.amount_sold - OLD.amount_sold;
4050-
delta_units_sold := NEW.units_sold - OLD.units_sold;
4051-
delta_amount_cost := NEW.amount_cost - OLD.amount_cost;
4048+
delta_time_key = OLD.time_key;
4049+
delta_amount_sold = NEW.amount_sold - OLD.amount_sold;
4050+
delta_units_sold = NEW.units_sold - OLD.units_sold;
4051+
delta_amount_cost = NEW.amount_cost - OLD.amount_cost;
40524052

40534053
ELSIF (TG_OP = 'INSERT') THEN
40544054

4055-
delta_time_key := NEW.time_key;
4056-
delta_amount_sold := NEW.amount_sold;
4057-
delta_units_sold := NEW.units_sold;
4058-
delta_amount_cost := NEW.amount_cost;
4055+
delta_time_key = NEW.time_key;
4056+
delta_amount_sold = NEW.amount_sold;
4057+
delta_units_sold = NEW.units_sold;
4058+
delta_amount_cost = NEW.amount_cost;
40594059

40604060
END IF;
40614061

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy