fixes bug#21303

qua:wally
dev:valdir

Criado a validação para buscar IDs disponiveis na tabela dentro do range do tipo java.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104844 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2020-12-23 18:31:56 +00:00
parent 073f92edb1
commit 4ef243d1f0
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, INDTIPOCONSTANTE, VALORCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) VALUES (CONSTANTE_SEQ.NEXTVAL, ''LIMITE_ID_TIPO_PARADA'', ''LIMITE_ID_TIPO_PARADA'', ''1'', ''127'', ''1'', ''1'', sysdate, ''1'')';
exception when dup_val_on_index then null;
end;