From 4ef243d1f0df893efaf16d45fbb40f974916687e Mon Sep 17 00:00:00 2001 From: walace Date: Wed, 23 Dec 2020 18:31:56 +0000 Subject: [PATCH] fixes bug#21303 qua:wally dev:valdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/db/migration/V20201223_1356__mantis21303.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/db/migration/V20201223_1356__mantis21303.sql diff --git a/src/db/migration/V20201223_1356__mantis21303.sql b/src/db/migration/V20201223_1356__mantis21303.sql new file mode 100644 index 000000000..260de2910 --- /dev/null +++ b/src/db/migration/V20201223_1356__mantis21303.sql @@ -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; \ No newline at end of file