tratamento de erro qd a funcion sistema já foi inserida
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@59203 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9fe142b8de
commit
be58941022
|
@ -1,6 +1,8 @@
|
|||
declare
|
||||
column_exists exception;
|
||||
ja_existe exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
pragma exception_init (ja_existe , -00001);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA ADD INDGENNUMFOLIOVTAINTIMPOST NUMBER(1,0) DEFAULT 0 NOT NULL';
|
||||
INSERT INTO FUNCION_SISTEMA VALUES
|
||||
|
@ -13,5 +15,7 @@ begin
|
|||
sysdate,
|
||||
1
|
||||
);
|
||||
exception when column_exists then null;
|
||||
exception
|
||||
when column_exists then null;
|
||||
when ja_existe then null;
|
||||
end;
|
Loading…
Reference in New Issue