On Oct 22, 2016, at 9:42 PM, Max Slimmer III <maxslim...@gmail.com> wrote:
> 
> Setting connection.autocommit = False does not cause a 
> connection.connector.BeginTrans() and so any subsequent 
> connection.commit() raises an exception that there is no open 
> transaction. Is this by design and I'm supposed to explicitly call 
> BeginTrans() when switching autocommit off?

Yes, that's exactly the tradeoff.  If you have auto commit on, ADO will wrap 
each operation in a transaction.  If you have auto commit off, then you have to 
insert the transaction markers yourself.
— 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to