]> granicus.if.org Git - python/commit
Merged changes from standalone version 2.3.3. This should probably all be
authorGerhard Häring <gh@ghaering.de>
Sun, 14 Jan 2007 01:43:50 +0000 (01:43 +0000)
committerGerhard Häring <gh@ghaering.de>
Sun, 14 Jan 2007 01:43:50 +0000 (01:43 +0000)
commit0741a60ca7b332b755d8a6b3328da414f963f7b4
tree470ec59548f5d0a1a875183c9edeedf8bd97454d
parentb1a8ef629753ddfd23968a4418669ebbda83c835
Merged changes from standalone version 2.3.3. This should probably all be
merged into the 2.5 maintenance branch:

- self->statement was not checked while fetching data, which could
  lead to crashes if you used the pysqlite API in unusual ways.
  Closing the cursor and continuing to fetch data was enough.

- Converters are stored in a converters dictionary. The converter name
  is uppercased first. The old upper-casing algorithm was wrong and
  was replaced by a simple call to the Python string's upper() method
  instead.

-Applied patch by Glyph Lefkowitz that fixes the problem with
 subsequent SQLITE_SCHEMA errors.

- Improvement to the row type: rows can now be iterated over and have a keys()
  method. This improves compatibility with both tuple and dict a lot.

- A bugfix for the subsecond resolution in timestamps.

- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
  checked for. Now they work as documented.

- gcc on Linux sucks. It exports all symbols by default in shared
  libraries, so if symbols are not unique it can lead to problems with
  symbol lookup.  pysqlite used to crash under Apache when mod_cache
  was enabled because both modules had the symbol cache_init. I fixed
  this by applying the prefix pysqlite_ almost everywhere. Sigh.
22 files changed:
Lib/sqlite3/dbapi2.py
Lib/sqlite3/test/factory.py
Lib/sqlite3/test/regression.py
Lib/sqlite3/test/types.py
Modules/_sqlite/cache.c
Modules/_sqlite/cache.h
Modules/_sqlite/connection.c
Modules/_sqlite/connection.h
Modules/_sqlite/cursor.c
Modules/_sqlite/cursor.h
Modules/_sqlite/microprotocols.c
Modules/_sqlite/microprotocols.h
Modules/_sqlite/module.c
Modules/_sqlite/module.h
Modules/_sqlite/prepare_protocol.c
Modules/_sqlite/prepare_protocol.h
Modules/_sqlite/row.c
Modules/_sqlite/row.h
Modules/_sqlite/statement.c
Modules/_sqlite/statement.h
Modules/_sqlite/util.c
Modules/_sqlite/util.h