[Thuban-commits] r2684: sqlite version

Bernhard Reiter bernhard at intevation.de
Tue Jun 27 20:37:11 CEST 2006


Am 27. Jun 2006 um 20:34:53 schrieb Didrik Pinte:
> 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 

Thanks for the test.

> 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())

It depends on which version of Frank has a problem with. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060627/2c319508/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)