From fc90a51de5f8a72bfdf9004c69a54eefbcd3b3e3 Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Tue, 4 Jul 2017 20:39:32 +0000 Subject: [PATCH] bug #0009087 bug #0009077 - corrigido os erros, commit na trunk git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@70996 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170613_1645__mantis9077.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db/migration/V20170613_1645__mantis9077.sql diff --git a/src/db/migration/V20170613_1645__mantis9077.sql b/src/db/migration/V20170613_1645__mantis9077.sql new file mode 100644 index 000000000..92b634bed --- /dev/null +++ b/src/db/migration/V20170613_1645__mantis9077.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO PRICING_ESP_PUNTO_VENTA pe ( pe.PRICINGESPPUNTOVENTA_ID, pe.PUNTOVENTA_ID, pe.PRICINGESPECIFICO_ID, pe.ACTIVO, pe.FECMODIF, pe.USUARIO_ID ) + SELECT PRICING_ESP_PUNTOV_SEQ.nextval ,-1, p.PRICINGESPECIFICO_ID,1,sysdate,1 FROM PRICING_ESPECIFICO p WHERE ACTIVO=1'; + exception when dup_val_on_index then null; +end; \ No newline at end of file