Changes between Version 6 and Version 7 of drmsSumRm


Ignore:
Timestamp:
09/11/14 14:51:07 (10 years ago)
Author:
joe
Comment:

fixed trigger

Legend:

Unmodified
Added
Removed
Modified
  • drmsSumRm

    v6 v7  
    117117CREATE OR REPLACE FUNCTION no_retention ( ) RETURNS TRIGGER LANGUAGE PLPGSQL AS $$ 
    118118BEGIN 
    119 NEW.effective_date := to_char( (now()+INTERVAL '2 hours'), 'YYYYMMDDHH24MI' ); 
     119NEW.effective_date := to_char( (now()+INTERVAL '6 hours'), 'YYYYMMDDHH24MI' ); 
     120RETURN NEW; 
    120121END 
    121122$$; 
    122123 
    123 CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention(); 
    124 }}} 
     124CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention();}}}