[Thuban-commits] r2684: sqlite version

Didrik Pinte dpinte at itae.be
Tue Jun 27 20:34:53 CEST 2006


Le mardi 27 juin 2006 à 20:15 +0200, Bernhard Reiter a écrit :
> Am Dienstag, 27. Juni 2006 18:11 schrieb scm-commit at wald.intevation.org:
> > Author: frank
> 
> > Thuban/version.py: Bugfix determination of SQLite on old systems.
> 
> Hi Frank,
> can you be more specific about which versions of sqlite 
> are affected by the fix?
> Are you also sure that more modern versions will continue to work?
> 
> Bernhard

I've just tested the modif with pysqlite2 and pysqlite1 ... Frank
modification is ok with pysqlite1 but not with pysqlite2 

Should we correct this like that :

try:
    from pysqlite2._sqlite import sqlite_version
    versions['sqlite'] = sqlite_version
    versions['sqlite-tuple'] = make_tuple(sqlite_version)
except ImportError:
    from _sqlite import sqlite_version
    versions['sqlite'] = sqlite_version()
    versions['sqlite-tuple'] = make_tuple(sqlite_version())


Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060627/21cf209d/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)