fixes bug#19391

dev: 
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101929 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2020-06-02 18:44:16 +00:00
parent eb0736234c
commit 71db0ee809
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,25 @@
declare
dup_val_on_index exception;
except_02291 exception;
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin
execute immediate 'UPDATE PERFIL_FUNCION SET ACTIVO = 0 where FUNCIONSISTEMA_ID in ( SELECT FUNCIONSISTEMA_ID FROM FUNCION_SISTEMA where DESCRUTA like ''%MOVIMENTACIONBILHETES%'' )';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;
/
--LIMPA O COLUNA
declare
dup_val_on_index exception;
except_02291 exception;
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin
execute immediate 'UPDATE FUNCIONSISTEMA_ID SET ACTIVO = 0 FROM FUNCION_SISTEMA where DESCRUTA like ''%MOVIMENTACIONBILHETES%'' ';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -0,0 +1,25 @@
declare
dup_val_on_index exception;
except_02291 exception;
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin
execute immediate 'UPDATE PERFIL_FUNCION SET ACTIVO = 0 where FUNCIONSISTEMA_ID in ( SELECT FUNCIONSISTEMA_ID FROM FUNCION_SISTEMA where DESCRUTA like ''%MOVIMENTACIONBILHETES%'' )';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;
/
--LIMPA O COLUNA
declare
dup_val_on_index exception;
except_02291 exception;
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin
execute immediate 'UPDATE FUNCIONSISTEMA_ID SET ACTIVO = 0 FROM FUNCION_SISTEMA where DESCRUTA like ''%MOVIMENTACIONBILHETES%'' ';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;