Re: [python-win32] adodbapi transaction counter

2014-11-13 Thread Vernon D. Cole
On Wed, Nov 12, 2014 at 7:32 AM, Jure Erznožnik jure.erznoz...@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

Re: [python-win32] adodbapi transaction counter

2014-11-13 Thread Jure Erznožnik
Thanks. And thanks for this nice lib. It was the final thing I needed to finally run 2to3 on my projects :D LP, Jure From: Vernon D. Cole [mailto:vernondc...@gmail.com] Sent: Thursday, November 13, 2014 10:36 PM To: Jure Erznožnik Cc: python-win32@python.org Subject: Re: [python-win32] adodbapi

[python-win32] adodbapi transaction counter

2014-11-12 Thread Jure Erznožnik
I just installed this on Python 2.7 and immediately ran into a possible bug: When connection.rollback() is called, a new transaction wasn't immediately started. I traced the bug to line 382 in adodbapi.py where transaction_level is checked against 0. However, the COM routine called a bit above