fixes bug#0014336
dev: thiago qua: Implementação efetuada. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@95581 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3322dc979d
commit
19278999c0
|
@ -5,19 +5,4 @@ begin
|
||||||
execute immediate
|
execute immediate
|
||||||
'ALTER TABLE ESTACION ADD DT_MAX_PRINT_LOG_SERVIDOR DATE';
|
'ALTER TABLE ESTACION ADD DT_MAX_PRINT_LOG_SERVIDOR DATE';
|
||||||
exception when object_exists then null;
|
exception when object_exists then null;
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE OR REPLACE TRIGGER TRG_CHECK_ESTACION_PRINT_LOG
|
|
||||||
BEFORE INSERT OR UPDATE ON VTABOL.ESTACION
|
|
||||||
FOR EACH ROW
|
|
||||||
BEGIN
|
|
||||||
IF( :NEW.DT_MAX_PRINT_LOG_SERVIDOR > SYSDATE + 5 )
|
|
||||||
THEN
|
|
||||||
RAISE_APPLICATION_ERROR( -20001,
|
|
||||||
''DATA INVÁLIDA: CAMPO ESTACION.PRINT_LOG_SERVIDOR NÃO PODERÁ ULTRAPASSAR O LIMITE MÁXIMO DE 5 DIAS DA DATA ATUAL'');
|
|
||||||
END IF;
|
|
||||||
END;';
|
|
||||||
end;
|
end;
|
Loading…
Reference in New Issue