fixes bug#19260
dev: xxx qua: xxx Corrigindo script git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101711 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
484eff08ac
commit
80fdbba398
|
@ -5,15 +5,11 @@ begin
|
|||
execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
|
||||
/
|
||||
declare
|
||||
dup_val_on_index exception;
|
||||
except_02291 exception;
|
||||
pragma exception_init (dup_val_on_index , -00001);
|
||||
pragma exception_init (except_02291 , -02291);
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
||||
exception
|
||||
when dup_val_on_index then null;
|
||||
when except_02291 then null;
|
||||
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue