Re: [sqlalchemy] Calling a function after every new connection is created

2010-03-18 Thread Michael Bayer
On Mar 17, 2010, at 9:45 PM, chris e wrote: > Because of the way that we have our Oracle database setup, I have to > do the following to force every connection to use exact cursor > sharing. > >dbapi = engine.dialect.dbapi >orig_connect = dbapi.connect >def exact_connect(*args, **kwa

[sqlalchemy] Calling a function after every new connection is created

2010-03-17 Thread chris e
Because of the way that we have our Oracle database setup, I have to do the following to force every connection to use exact cursor sharing. dbapi = engine.dialect.dbapi orig_connect = dbapi.connect def exact_connect(*args, **kwargs) : conn_obj = orig_connect(*args, **kwargs)