fixes bug#15906

dev:
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@97967 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago.clemente 2019-09-30 19:30:43 +00:00
parent c05ada20f6
commit 1d6dea6724
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
declare
begin
execute immediate 'update cliente_direccion cd set activo=1 where activo is null and exists (select 1 from cliente c where c.cliente_id = cd.cliente_id and c.activo=1)';
exception when others then null;
end;
/
declare
begin
execute immediate 'update cliente_direccion cd set activo=0 where activo is null and exists (select 1 from cliente c where c.cliente_id = cd.cliente_id and c.activo=0)';
exception when others then null;
end;