[Thuban-commits] r2684: sqlite version

Frank Koormann frank.koormann at intevation.de
Wed Jun 28 12:50:02 CEST 2006


Am Dienstag 27 Juni 2006 20:37 schrieb Bernhard Reiter:
> Am 27. Jun 2006 um 20:34:53 schrieb Didrik Pinte:
> > 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. :)

The above looks OK for me (if it works with pysqlite2). The former version 
didn't work with pysqlite1. Didrik, please submit your correction.

Thanks,

Frank




More information about the Thuban-devel mailing list

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