fixes bug#18646

dev:thiago.veloso
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@100802 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago.clemente 2020-03-18 21:24:39 +00:00
parent 978f307dcd
commit 056bc6b734
1 changed files with 25 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 RUTA_EMBRQ_DESEMBRQ SET PARADA_EMB_DES_ID = PARADA_ID WHERE PARADA_EMB_DES_ID IS NULL AND PARADA_ID IS NOT NULL';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;
/
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 ESQUEMA_CORRIDA_EMBRQ_DESEMBRQ SET PARADA_EMB_DES_ID = PARADA_ID WHERE PARADA_EMB_DES_ID IS NULL AND PARADA_ID IS NOT NULL';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;