coleifer / pysqlite3

SQLite3 DB-API 2.0 driver from Python 3, packaged separately, with improvements
zlib License
183 stars 51 forks source link

Call sqlite3_initialize() during module initialization. #53

Closed kaizhu256 closed 1 year ago

kaizhu256 commented 1 year ago

This allows pysqlite3 to pass all tests when custom-built with recommended compile-time option SQLITE_OMIT_AUTOINIT at https://www.sqlite.org/compile.html.

Passed ci-tests at https://github.com/kaizhu256/pysqlite3/actions.

coleifer commented 1 year ago

I added a slightly different formulation which should be functionally equivalent, but more closely matches upstream behavior, https://github.com/coleifer/pysqlite3/commit/85672cf2fb1e885c4b620fdf9ed2ce153c734b2c