Re: [cx-oracle-users] acquire() vs. connect(): DRCP cclass and purity params
Brought to you by:
atuining
From: avinash n. <avi...@or...> - 2014-09-05 12:47:54
|
Hello, 1. acquire() accepts the two params and passes it on to PyObject_Call() which takes connection type as parameter. It goes ahead and creates and returns a connection object. Thus these two parameters are valid for acquire() as well. 2. acquire() and connect() will work similarly in most cases. connect() can also be called without the credentials since you had passed in SessionPool. If you see any inappropriate behavior post it in the forum. Regards, Avinash On 8/2/2014 7:42 AM, Jim Freeman wrote: > I see the two params cclass and purity in the documentation for > connect(), but not for acquire(). Acquire() accepts the two params but > doesn't do anything with them (I checked the C cource code). > So should I be using be using connect() instead of acquire()? If I > use connect(), do I need to pass in credentials and DSN, since I > already passed them when creating SessionPool? > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > > > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users |