Shashwat Anand <anand.shash...@gmail.com> added the comment:

>>> conn = sqlite3.connect('dbdump.sqlite')
>>> c = conn.cursor()
>>> conn.in_transaction
False
>>> c.execute('CREATE TABLE foo (id integer, name text)')
<sqlite3.Cursor object at 0x1004a7730>
>>> conn.in_transaction
False

It gives True for Insert and False for Select. perfect Ok. However It should 
give True when we Create tables ?

Adding unit-test which upon showing this behavior fails the test.

----------
Added file: http://bugs.python.org/file17485/dbapi.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8845>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to