]> granicus.if.org Git - python/commit
sqlite3: Fix a segfault on calling a connection with something else than a
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 13 Mar 2010 03:27:07 +0000 (03:27 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 13 Mar 2010 03:27:07 +0000 (03:27 +0000)
commit6e055d78e16c0af28a35fbad53b99d8be59e1ea3
tree1d99c02d8b2a88d0e78940a695ff1a73487235b5
parent93dd9b808ec306723878b94dd9b8ab0748e4f1ec
sqlite3: Fix a segfault on calling a connection with something else than a
string. Initialize all attributes to be able to call the statement destructor
on error.

Avoid also a duplicate connection in some tests: setUp() does already open a
connection (":memory:").
Lib/sqlite3/test/regression.py
Modules/_sqlite/connection.c