0016198: Erro identificado no log do tareas

bug#16198
dev:gleimar
qua:gleimar

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98020 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdir 2019-10-02 13:26:40 +00:00
parent 1d6dea6724
commit d98bf2e24d
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'UPDATE EMPRESA_IMPOSTO SET INDREDBASEICMSBPE=0 WHERE INDREDBASEICMSBPE IS NULL';
exception when object_exists then null;
end;

View File

@ -0,0 +1,6 @@
DO $$
BEGIN
UPDATE EMPRESA_IMPOSTO SET INDREDBASEICMSBPE=0 WHERE INDREDBASEICMSBPE IS NULL;
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;