[pygr-notify] Issue 70 in pygr: Support for sqlite

codesite-noreply at google.com codesite-noreply at google.com
Fri Mar 6 13:25:03 PST 2009


Comment #2 on issue 70 by marecki: Support for sqlite
http://code.google.com/p/pygr/issues/detail?id=70

In its present incarnation SQLite support only works with Python 2.5+, i.e.  
with
versions which come with the sqlite3 module. For 2.3 and 2.4 the very same
functionality is available via an external package, which however is not a  
drop-in
replacement because the module's name was changed when this package was  
incorporated
into the Python library (originally it was pysqlite2), and a slightly  
different
import is required too (one needs to explicitly select DB-API 2.0 support).

Attached you will find a patch which attempts to address this issue: Pygr  
will now
try to import pysqlite2.dbapi2 if sqlite3 import failed, with both modules  
being
imported as 'sqlite' so that the same code works for both cases. I have  
tested this
on the future new megatest machine (x86 running Linux, Python 2.4), all  
tests from
the new framework pass. Please verify and include into master.


Attachments:
	0001-Try-to-use-pysqlite2-if-sqlite3-is-not-available-for.patch  3.9 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list