This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alsadi
Recipients alsadi, pitrou
Date 2009-01-20.18:52:29
SpamBayes Score 8.301897e-08
Marked as misclassified No
Message-id <1232477551.43.0.405492221519.issue4995@psf.upfronthosting.co.za>
In-reply-to
Content
a fedora-devel fellow gave me a solution

cn=sqlite3.connect(':memory:', isolation_level=None)

and it worked
I hope that does not affect other versions


$ python
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) 
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> cn=sqlite3.connect(':memory:', isolation_level=None)
>>> c=cn.cursor()
>>> c.execute('BEGIN TRANSACTION')
<sqlite3.Cursor object at 0x9cb9c20>
>>> c.execute('create temp table tmp_main (id integer, b text)')
<sqlite3.Cursor object at 0x9cb9c20>
>>> c.execute('insert into tmp_main (id) values (10);')
<sqlite3.Cursor object at 0x9cb9c20>
>>> c.execute('END TRANSACTION')
<sqlite3.Cursor object at 0x9cb9c20>
>>>
History
Date User Action Args
2009-01-20 18:52:31alsadisetrecipients: + alsadi, pitrou
2009-01-20 18:52:31alsadisetmessageid: <1232477551.43.0.405492221519.issue4995@psf.upfronthosting.co.za>
2009-01-20 18:52:30alsadilinkissue4995 messages
2009-01-20 18:52:30alsadicreate