Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> how to confirm the context has been initialized .

how to confirm the context has been initialized .

From: liujd <liujd_at_cti.ac.cn>
Date: Tue, 25 Mar 2003 22:53:44 -0800
Message-ID: <F001.00572D20.20030325225344@fatcity.com>


i write two function .
one is login function as login(char * password,int contextId).this function initialize the context environment .and login database. two is getGroupInfo(char * groupName,int contextId); this function is as his name to get one group information.And refer to ctx[contextId] in the login function initial
the sql_context variable is declared in the *.h as following EXEC SQL BEGIN DECLARE SECTION;
        sql_context ctx[20];
EXEC SQL END DECLARE SECTION;
Now ,my question is in the function two( getGroupInfo() ) ,how to judge the ctx[contextId] has been initialized before used it?

thanks in advance!

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: liujd
  INET: liujd_at_cti.ac.cn

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Mar 26 2003 - 00:53:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US