[python-win32] adodbapi transaction counter
Vernon D. Cole
vernondcole at gmail.com
Thu Nov 13 22:35:52 CET 2014
On Wed, Nov 12, 2014 at 7:32 AM, Jure Erznožnik <Jure.Erznoznik at perftech.si>
wrote:
> if self.transaction_level == 0 *or self.transaction_level is None*
>
Rats! That's what I get for copying code that I don't really understand. My
simple tests passed this as okay.
I have changed the test to "if not self.transaction_level:" in order to fix
the bug and avoid the "or" operation at the same time. That's pretty
obscure, so I use your version as the comment. This bug fix will define
version 2.6.1.2 -- to be pushed to pypi after testing.
--
Vernon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20141113/192d4696/attachment.html>
More information about the python-win32
mailing list