From 056bc6b7341260767afc14347b71bb66b90f2427 Mon Sep 17 00:00:00 2001 From: "thiago.clemente" Date: Wed, 18 Mar 2020 21:24:39 +0000 Subject: [PATCH] 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 --- .../migration/V20200318_1150__mantis18646.sql | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/db/migration/V20200318_1150__mantis18646.sql diff --git a/src/db/migration/V20200318_1150__mantis18646.sql b/src/db/migration/V20200318_1150__mantis18646.sql new file mode 100644 index 000000000..90d285b59 --- /dev/null +++ b/src/db/migration/V20200318_1150__mantis18646.sql @@ -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; \ No newline at end of file