<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pkgsrc/databases/py-postgresql/distinfo, branch pkgsrc_2013Q2</title>
<subtitle>[no description]</subtitle>
<id>https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2013Q2</id>
<link rel='self' href='https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2013Q2'/>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/'/>
<updated>2013-01-08T15:09:59Z</updated>
<entry>
<title>Upgrade to version 4.1.1</title>
<updated>2013-01-08T15:09:59Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2013-01-08T15:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=833b8258d664c09214a37074828dcfd48dde31c1'/>
<id>urn:sha1:833b8258d664c09214a37074828dcfd48dde31c1</id>
<content type='text'>
Mainly a bug fix.  Also adds a preplacement for the functionality of
databases/py-pgnotify which no longer works with new versions of
PyGreSQL and PostgreSQL.
</content>
</entry>
<entry>
<title>Upgrade to version 4.1.</title>
<updated>2013-01-03T13:58:35Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2013-01-03T13:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=72125307e815e976db0b6cea698f736c62ac54d4'/>
<id>urn:sha1:72125307e815e976db0b6cea698f736c62ac54d4</id>
<content type='text'>
Changes since 4.0:
- Dropped support for Python below 2.5 and PostgreSQL below 8.3.
- Added support for Python up to 2.7 and PostgreSQL up to 9.2.
- Particularly, support PQescapeLiteral() and PQescapeIdentifier().
- The query method of the classic API now supports positional parameters.
  This an effective way to pass arbitrary or unknown data without worrying
  about SQL injection or syntax errors (contribution by Patrick TJ McPhee).
- The classic API now supports a method namedresult() in addition to
  getresult() and dictresult(), which returns the rows of the result
  as named tuples if these are supported (Python 2.6 or higher).
- The classic API has got the new methods begin(), commit(), rollback(),
  savepoint() and release() for handling transactions.
- Both classic and DBAPI 2 connections can now be used as context
  managers for encapsulating transactions.
- The execute() and executemany() methods now return the cursor object,
  so you can now write statements like "for row in cursor.execute(...)"
  (as suggested by Adam Frederick).
- Binary objects are now automatically escaped and unescaped.
- Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
- Proper handling of date and time objects as input.
- Proper handling of floats with 'nan' or 'inf' values as input.
- Fixed the set_decimal() function.
- All DatabaseError instances now have a sqlstate attribute.
- The getnotify() method can now also return payload strings (#15).
- Better support for notice processing with the new methods
  set_notice_receiver() and get_notice_receiver()
  (as suggested by Michael Filonenko, see #12 and #37).
- Open transactions are rolled back when pgdb connections are closed
  (as suggested by Peter Harris, see #46).
- Connections and cursors can now be used with the "with" statement
  (as suggested by Peter Harris, see #46).
- New method use_regtypes() that can be called to let getattnames()
  return regular type names instead of the simplified classic types (#44).
</content>
</entry>
<entry>
<title>Upgrade to 4.0.  This is a major release and may risk some backwards</title>
<updated>2009-01-01T13:21:44Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2009-01-01T13:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=22e2699e1b3c31bc65776a59b6c1e2e78699cf4f'/>
<id>urn:sha1:22e2699e1b3c31bc65776a59b6c1e2e78699cf4f</id>
<content type='text'>
incompatibilities.  Here are the major changes.

- Dropped support for Python below 2.3 and PostgreSQL below 7.4.
- Improved performance of fetchall() for large result sets
  by speeding up the type casts (as suggested by Peter Schuller).
- Exposed exceptions as attributes of the connection object.
- Exposed connection as attribute of the cursor object.
- Cursors now support the iteration protocol.
- Added new method to get parameter settings.
- Added customizable row_factory as suggested by Simon Pamies.
- Separated between mandatory and additional type objects.
- Added keyword args to insert, update and delete methods.
- Added exception handling for direct copy.
- Release the GIL while making a connection
  (as suggested by Peter Schuller).
- If available, use decimal.Decimal for numeric types.
- Allow DB wrapper to be used with DB-API 2 connections
  (as suggested by Chris Hilton).
- Made private attributes of DB wrapper accessible.
- Dropped dependence on mx.DateTime module.
- Support for PQescapeStringConn() and PQescapeByteaConn();
  these are now also used by the internal _quote() functions.
- Added 'int8' to INTEGER types. New SMALLINT type.
- Added a way to find the number of rows affected by a query()
  with the classic pg module by returning it as a string.
  For single inserts, query() still returns the oid as an integer.
  The pgdb module already provides the "rowcount" cursor attribute
  for the same purpose.
- Improved getnotify() by calling PQconsumeInput() instead of
  submitting an empty command.
- Removed compatibility code for old OID munging style.
- The insert() and update() methods now use the "returning" clause
  if possible to get all changed values, and they also check in advance
  whether a subsequent select is possible, so that ongoing transactions
  won't break if there is no select privilege.
- Added "protocol_version" and "server_version" attributes.
- Revived the "user" attribute.
- The pg module now works correctly with composite primary keys;
  these are represented as frozensets.
- Removed the undocumented and actually unnecessary "view" parameter
  from the get() method.
- get() raises a nicer ProgrammingError instead of a KeyError
  if no primary key was found.
- delete() now also works based on the primary key if no oid available
  and returns whether the row existed or not.
</content>
</entry>
<entry>
<title>Update package to 3.8.1.</title>
<updated>2006-06-11T00:58:39Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2006-06-11T00:58:39Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=e6cc5e37b5f7e6f06ef6683911761fc2e83c71cd'/>
<id>urn:sha1:e6cc5e37b5f7e6f06ef6683911761fc2e83c71cd</id>
<content type='text'>
Mostly bug fixes from 3.8.

- Use string methods instead of deprecated string functions.
- Only use SQL-standard way of escaping quotes.
- Added the functions escape_string() and escape/unescape_bytea()
  (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago).
- Reverted code in clear() method that set date to current.
- Added code for backwards compatibility in OID munging code.
- Reorder attnames tests so that "interval" is checked for before "int."
- If caller supplies key dictionary, make sure that all has a namespace.
</content>
</entry>
<entry>
<title>Update to version 3.8.</title>
<updated>2006-02-17T17:58:02Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2006-02-17T17:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=ff49789ca29a80e0cbfb48002fd4c815c2b6d2f8'/>
<id>urn:sha1:ff49789ca29a80e0cbfb48002fd4c815c2b6d2f8</id>
<content type='text'>
- Installed new favicon.ico from Matthew Sporleder &lt;mspo@mspo.com&gt;
- Replaced snprintf by PyOS_snprintf.
- Removed NO_SNPRINTF switch which is not needed any longer
- Clean up some variable names and namespace
- Add get_relations() method to get any type of relation
- Rewrite get_tables() to use get_relations()
- Use new method in get_attnames method to get attributes of views as well
- Add Binary type
- Number of rows is now -1 after executing no-result statements
- Fix some number handling
- Non-simple types do not raise an error any more
- Improvements to documentation framework
- Take into account that nowadays not every table must have an oid column
- Simplification and improvement of the inserttable() function
- Fix up unit tests
- The usual assortment of minor fixes and enhancements
</content>
</entry>
<entry>
<title>Upgrade to PyGreSQL 3.7</title>
<updated>2005-09-07T11:42:27Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2005-09-07T11:42:27Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=30c544a99338eb465aa2f2829aa0ccc21b0dbcae'/>
<id>urn:sha1:30c544a99338eb465aa2f2829aa0ccc21b0dbcae</id>
<content type='text'>
Important changes from PyGreSQL 3.6.2 to PyGreSQL 3.7
  - Fixes to quoting function.
  - Use Python datetime if mxDatetime is not available.
  - Add checks for valid database connection to methods.
  - Improved namespace support, handle search_path correctly.
  - Removed old dust and unnessesary imports, added docstrings.
  - Internal sql statements as one-liners, smoothed out ugly code.
  - Major improvements in classic pg module.
</content>
</entry>
<entry>
<title>Add RMD160 digests in addition to SHA1 ones.</title>
<updated>2005-02-23T16:33:05Z</updated>
<author>
<name>agc</name>
<email>agc</email>
</author>
<published>2005-02-23T16:33:05Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=56112397159c792a12ff44495919beab759c4392'/>
<id>urn:sha1:56112397159c792a12ff44495919beab759c4392</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update package to 3.6.2.</title>
<updated>2005-02-23T12:13:35Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2005-02-23T12:13:35Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=114e85b868912cb7520284e69ee57df15402cfe0'/>
<id>urn:sha1:114e85b868912cb7520284e69ee57df15402cfe0</id>
<content type='text'>
The only change is to fix the handling of primary keys when using namespaces.
</content>
</entry>
<entry>
<title>Wrong checksum.  Updated file.  No PKGREVISION bump since the update was</title>
<updated>2004-12-17T21:38:20Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2004-12-17T21:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=a46a544545af5505796e56a7fccbde471743ab72'/>
<id>urn:sha1:a46a544545af5505796e56a7fccbde471743ab72</id>
<content type='text'>
so recent.
</content>
</entry>
<entry>
<title>Upgrade to version 3.6.</title>
<updated>2004-12-16T20:37:46Z</updated>
<author>
<name>darcy</name>
<email>darcy</email>
</author>
<published>2004-12-16T20:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=69b843bfa1028ef307425464f7839659c70d09bf'/>
<id>urn:sha1:69b843bfa1028ef307425464f7839659c70d09bf</id>
<content type='text'>
Most important change was serious bug in 3.5 that did not allow DB-API 2.0
version to work without a manual change.

Other changes:

  - Better DB-API 2.0 compliance
  - Exception hierarchy moved into C module and made available to both APIs
  - Fix error in update method that caused false exceptions
  - Moved to standard exception hierarchy in classic API
  - Added new method to get transaction state
  - Use proper Python constants where appropriate
  - Use Python versions of strtol, etc.  Allows WIN32 build
  - Bug fixes and cleanups
</content>
</entry>
</feed>
