Formula in Parameter of Report ...

Este forum é dedicado a códigos errados que se encontram por aí, ou seja, coisas que não se deve fazer de jeito nenhum! Não coloque neste forum dúvidas! (apenas situações bizarras do nosso dia a dia :-)
Post Reply
Diego_Mello
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 229
Joined: Fri, 05 Sep 2008 2:59 pm
Location: Igrejinha - RS
Diego Mello
Igrejinha - RS
www.twitter.com/diegolmello

I found this code in a series of User Parameters in a Report ...

Select all

function P_item_iniValidTrigger return boolean is 
 /*cursor c1 is 
  select sbe_ies_codigo 
  from dom_saldo_beneficiamento 
  where sbe_ies_codigo = nvl(:p_item_ini,sbe_ies_codigo) 
    and fil_filial = :p_filial 
    and emp_empresa = :p_empresa; 
 item c1%rowtype;*/ 
begin 
/*	return(true); 
 open c1; 
 loop 
   fetch c1 into item; 
   exit when c1%notfound; 
   return(TRUE); 
 end loop; 
 close c1; 
 return(FALSE);*/ 
  return (TRUE); 
end;
I think I do not need to explain anything ... xDD
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Someone gave up the cursor and forgot to clean ...: - /
Trevisolli
Moderador
Moderador
Posts: 2016
Joined: Wed, 12 Jan 2005 3:25 pm
Location: Araraquara - SP
Abraço,

Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP

I agree with Dr_Gori.

on Clear , I particularly, when I make a change of great risk (I say great risk because it can compromise a good part, but all, The system), I usually leave commented for a while, for after a time in production, eliminate the object comments.

It is certain that it would not be the case informed in this topic, but for safety, I usually proceed in this way and, after a time approved, in the next change in the object, I carry out the necessary cleaning.

There is a tip.
Diego_Mello
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 229
Joined: Fri, 05 Sep 2008 2:59 pm
Location: Igrejinha - RS
Diego Mello
Igrejinha - RS
www.twitter.com/diegolmello

I also agree with this, Trevisolli ...

I also do this sometimes ...
but there is one but ...

1st: Report was not changed since 2007 ...
2nd: I found this in all the user parameters of him ...
3rd: What he gave up on commenting, he did in Before Report ...

But at least it worked ... The guy just forgot to delete: D
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

diego_mello wrote: 2º: I found this in all the user parameters of it ...
is the famous CC methodology: Copy and Necklace: Shock :
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests