Re: acquire() vs. connect(): DRCP cclass and purity params

avinash nandakumar <[email protected]>
Newsgroups gmane.comp.python.db.cx-oracle
Organization Oracle Corporation
Message-ID <[email protected]>
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-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

_______________________________________________
cx-oracle-users mailing list
cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.