pysqlite to write 2.1 format ?

7 views
Skip to first unread message

Mikael Aalto

unread,
Dec 1, 2011, 7:07:14 AM12/1/11
to python...@googlegroups.com

Hi all,

I have a PHP-app that needs to access pyslite’s db (version 3). PHP 5.2.x all seem to miss the sqlite3 module,

they can only read format2.1. So how could I possibly write format 2.1 (not 3.0) from pysqlite ?

Recompiling the whole PHP is a REAL nightmare, we are talking cross-compiling here.

 

Best regards,

Mike

Roger Binns

unread,
Dec 1, 2011, 11:52:14 AM12/1/11
to python...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/12/11 04:07, Mikael Aalto wrote:
> they can only read format2.1. So how could I possibly write format 2.1
> (not 3.0) from pysqlite ?

You need to use pysqlite version 1 which works with sqlite version 2. You
will have to compile it yourself.

http://code.google.com/p/pysqlite/downloads/list?can=1&q=%22pysqlite-1%22

The last release of SQLite version 2 was in 2004.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7XsL4ACgkQmOOfHg372QSpYQCgqfXlEXYsZjwjkdtw4befx6sb
4lAAoIMP0EqiQGkOk0GlMrMtIpcxTXja
=Eidn
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages