SCM

File Release Notes and Changelog

Release Name: libpqtypes v1.3.4

Release Notes

Added specifier caching system, PQspecPrepare
Add PQsendf and PQsendvf
fixed threaded windows memory leak

Change Log

Sep 15, 2009 v1.3.4
- In v1.2b, a caching system for type spec format strings was introduced.
  PQputf and PQgetf would cache the last spec format seen, like "%int4".
  This avoided constant type handling lookups when using arrays, since
  one must put/get every element.  This version expands on this concept
  by adding an additional API call: PQspecPrepare.  The application can
  now prepare an unlimited number of spec format strings.
  NOTE:
    This change does not effect the behavior of putf or getf in older versions.
    Although, some libpqtypes code may run slower since type spec format
    strings are no longer automatically cached.  If you have loops calling
    putf or getf with the same spec format string, typically arrays, you
    would probably benefit from PQspecPrepare.
- Added a PQsendf() and PQsendvf(), same as PQexecf and PQexecvf except they
  are asynchronous versions.  Created manual pages for these functions as well.
- Fixed a bug in PQexecf and PQexevf documentation, the prototypes were
  documented as returning an int rather than a PGresult*.
- Fixed spelling error in PQspecPrepare.3 man page and added PQsendf and
  PQsendvf to the list of supported functions.
- Fixed memory leak in the error handling code.  Multi-threaded windows
  builds were not cleaning up the internal error structure in error.c.
  This is because windows has no automatic cleanup for TLS storage.  The
  only solution was to use fixed length buffers and truncate unusually
  long error messages; including error fields.
Powered By FusionForge