@@ -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