home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,952 of 2,288   
   bdj to All   
   configuration management   
   14 Dec 04 20:27:33   
   
   From: B.D.Jensen@gmx.net   
      
   Hello out there!   
   I wish to make package self-initializing, dependent of the environment   
   (production / test)   
   Is following a good design pattern?:   
      
   Package body my_ftp   
   ....   
   ipnr varchar2(100);   
      
   -- some procedures and functions   
      
   begin -- begin block in package body!   
     if this_is_production then   
       ipnr := 'external.domain.com';   
     else   
      ipnr := 'internal.domain.com';   
     end if;   
   end; -- package end!   
      
   -----------------------------------------   
   The begin-block will only be executed the first time I use something in the   
   package in the session.   
      
   Greetings   
   Bjørn   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca