Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd84c584

Browse files
committed
Revertfd2ace8
Seems we want to document '=' plpgsql assignment instead.
1 parent6286526 commitd84c584

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)

[8]ページ先頭

©2009-2025 Movatter.jp