fixes bug#15906
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@97967 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c05ada20f6
commit
1d6dea6724
|
@ -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;
|
Loading…
Reference in New Issue