fixes bug #AL-2143

master
valdevir 2023-03-16 10:23:09 -03:00
parent 3db3929151
commit 80222cf640
3 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 CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID)
VALUES (CONSTANTE_SEQ.nextval, ''EMAIL_SUPORTE_RJCONSULTORES'', ''EMAIL_SUPORTE_RJCONSULTORES'', ''suporterjconsultores@totvs.com.br'', ''1'', ''1'', ''1'', sysdate, ''1'')';
exception when dup_val_on_index then null;
end;