fixes bug#21228

qua:
dev:Aristides
Implementado filtro para não trazer usuário que não tenha cadastro do cadastro de operador EMBARCADA_SINCRONISMO.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104726 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2020-12-15 13:42:33 +00:00
parent 944965d310
commit 5234cb6679
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
declare
object_exists exception;
except_02275 exception;
except_02270 exception;
except_02261 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_02275 , -02275);
pragma exception_init (except_02270 , -02270);
pragma exception_init (except_02261 , -02261);
begin
execute immediate 'ALTER TABLE EMBARCADA_SINCRONISMO ADD CONSTRAINT USUARIO_ID_FK FOREIGN KEY(USUARIO_ID) REFERENCES USUARIO(USUARIO_ID)';
exception
when object_exists then null;
when except_02275 then null;
when except_02270 then null;
when except_02261 then null;
end;