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)';
|
execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)';
|
||||||
exception when object_exists then null;
|
exception when object_exists then null;
|
||||||
end;
|
end;
|
||||||
|
/
|
||||||
declare
|
declare
|
||||||
dup_val_on_index exception;
|
object_exists exception;
|
||||||
except_02291 exception;
|
pragma exception_init (object_exists , -00955);
|
||||||
pragma exception_init (dup_val_on_index , -00001);
|
|
||||||
pragma exception_init (except_02291 , -02291);
|
|
||||||
begin
|
begin
|
||||||
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
|
||||||
exception
|
exception when object_exists then null;
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_02291 then null;
|
|
||||||
end;
|
end;
|
Loading…
Reference in New Issue