[pysqlite] Possible Regression in pysqlite 2.5.3

Markus Gritsch <[email protected]> Tue, 10 Mar 2009 15:57:36 +0100
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hi,

I am using the latest version of SQLObject (0.10.4) which worked fine
with pysqlite 2.5.2.  When upgrading to pysqlite 2.5.3 the following
minimal example

    from sqlobject import *
    sqlhub.processConnection = connectionForURI('sqlite:/:memory:')

gives this traceback:

Traceback (most recent call last):
  File "sepp.py", line 2, in <module>
    sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
  File "C:\Python25\lib\site-packages\sqlobject-0.10.4-py2.5.egg\sqlobject\dbconnection.py",
line 934, in connectionForURI
    conn = connCls.connectionFromURI(uri)
  File "C:\Python25\lib\site-packages\sqlobject-0.10.4-py2.5.egg\sqlobject\sqlite\sqliteconnection.py",
line 104, in connectionFromURI
    return cls(filename=path, **args)
  File "C:\Python25\lib\site-packages\sqlobject-0.10.4-py2.5.egg\sqlobject\sqlite\sqliteconnection.py",
line 92, in __init__
    self.filename, **self._connOptions)
pysqlite2.dbapi2.ProgrammingError: Base Connection.__init__ not called.


Kind regards,
Markus