[python-win32] adodbapi changing autocommit
Vernon D. Cole
vernondcole at gmail.com
Mon Oct 24 17:57:41 EDT 2016
Wait a bit... Did I just hear that there is a difference in operation
between starting a connection with autocommit=false and turning autocommit
off during a session? If so, I think that's a bug. PEP-249 has no hook
for explicitly starting a transaction, so adodbapi needs to always have
done BeginTrans before any meaningful operation. Am I missing something?
--
Vernon Cole
On Mon, Oct 24, 2016 at 11:10 AM, Tim Roberts <timr at probo.com> wrote:
> Max Slimmer wrote:
> > The adodbapi documentation and code implies that with autocommit =
> > False I should only have to call commit (and possibly rollback) and if
> > using the connection as a context manager not even those are required.
> > If autocommit = False is passed on the initial connect the __init__ of
> > the connector handles BeginTrans and subsequent commit and rollbacks
> > also leave me with an open trans.
>
> Ah, I missed that subtle distinction. Your modification seems reasonable.
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20161024/a4471d54/attachment.html>
More information about the python-win32
mailing list