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
master
bruno.neves 2017-07-04 20:39:32 +00:00
parent 36295a7ed1
commit fc90a51de5
1 changed files with 8 additions and 0 deletions

View File

@ -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;