fixes bug#19260
dev: xxx qua: xxx Corrigindo script git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101710 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c83cec7a30
commit
484eff08ac
|
@ -7,9 +7,13 @@ begin
|
|||
end;
|
||||
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -01430);
|
||||
dup_val_on_index exception;
|
||||
except_02291 exception;
|
||||
pragma exception_init (dup_val_on_index , -00001);
|
||||
pragma exception_init (except_02291 , -02291);
|
||||
begin
|
||||
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
||||
exception when object_exists then null;
|
||||
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
||||
exception
|
||||
when dup_val_on_index then null;
|
||||
when except_02291 then null;
|
||||
end;
|
Loading…
Reference in New Issue