Gerhard Häring wrote:
> I just pushed an ad-hoc fix for this particular problem to the hg repo:
>
> changeset: 328:c42db28b5031
> branch: ctypes
> tag: tip
> parent: 317:89e6da6ea1cb
> user: Gerhard Haering <[EMAIL PROTECTED]>
> date: Sat May 17 03:19:37 2008 +0200
> summary: Quick fix: only use implicit transactions when autocommit
> is off.
>
> HTH & good night; just shout if there's anything else that needs fixing
Hi Gerhard,
thank you very much for the fix; indeed, your fix, together with a small
patches by me, solved the problem:
--- a/pysqlite2/dbapi2.py Tue Jan 15 16:31:23 2008 +0100
+++ b/pysqlite2/dbapi2.py Sat May 17 09:57:52 2008 +0200
@@ -236,7 +236,7 @@ def connect(database, **kwargs):
return factory(database, **kwargs)
class Connection(object):
- def __init__(self, database, isolation_level="", detect_types=0,
*args, **kwargs):
+ def __init__(self, database, isolation_level=None, detect_types=0,
*args, **kwargs):
self.db = c_void_p()
ret = sqlite.sqlite3_open(database, byref(self.db))
Now the django test that was previously failing passes; I've not run the
others yet, but I expect them to pass as well, or to be broken for other
reasons :-)
One more questions: I have two versions of pysqlite-ctypes around:
1) the one which was originally at http://hg.ghaering.de/pysqlite3/;
that link is now broken but you can still download it from
http://codespeak.net/~cfbolz/pysqlite3.tar.gz
2) the one in the official pysqlite repo; I've got it by doing hg clone
http://oss.itsystementwicklung.de/hg/pysqlite/ && hg up -C ctypes pysqlite
I found that while (2) is supposed to be newer, it misses some features
that (1) has, in particular Connection.create_function (which is needed
by django).
I'm not an expert of mercurial, but it seems that some changesets went
lost when moving from the old url to the new one.
thank you again for your efforts!
ciao,
Anto
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev