summaryrefslogtreecommitdiff
path: root/databases/py-postgresql
AgeCommit message (Collapse)AuthorFilesLines
2014-05-09Mark packages that are not ready for python-3.3 also not ready for 3.4,wiz1-2/+2
until proven otherwise.
2014-03-05Allow PyGreSQL to work with PostgreSQL < 9.0.darcy3-2/+54
PR: pkg/48567
2014-01-25Mark packages as not ready for python-3.x where applicable;wiz1-3/+3
either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
2013-01-08Upgrade to version 4.1.1darcy2-7/+7
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.
2013-01-03Fix hard coded PLIST entries. Thanks Ryo ONODERA.darcy2-7/+7
2013-01-03Upgrade to version 4.1.darcy3-9/+13
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).
2012-10-02Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-08-05Bump PKGREVISION for change of PostgreSQL default version to 9.1.obache1-2/+2
2012-06-09Replace python interpreter in two files. Bump PKGREVISION.wiz1-2/+4
2012-04-08Remove python24 and all traces of it from pkgsrc.wiz1-3/+1
Remove devel/py-ctypes (only needed by and supporting python24). Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE lines that just mirror defaults now. Miscellaneous cleanup while editing all these files.
2012-02-24Location of distribution file has changed.darcy1-2/+2
2011-09-29Remove Python 2.3 from the list of supported versionsjoerg1-2/+2
2011-08-27PyGreSQL doesn't work on Python 3 yet.darcy1-1/+3
2010-02-10Bump revision for change of PostgreSQL default version.joerg1-1/+2
2009-09-07Retire Python 2.3 support.joerg1-2/+1
2009-06-14Remove @dirrm entries from PLISTsjoerg1-4/+1
2009-03-18Change MAINTAINER to OWNER on some of my packages.darcy1-2/+2
2009-03-05Remove PYBINMODULE. All it did was mark some packages as not availablejoerg1-2/+1
on some platforms that lacked shared library support in the past. The list hasn't been maintained at all and the gain is very limited, so just get rid of it.
2009-01-01Upgrade to 4.0. This is a major release and may risk some backwardsdarcy2-10/+10
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.
2008-06-12Add DESTDIR support.joerg1-5/+7
2008-04-25Update PYTHON_VERSIONS_COMPATIBLEjoerg1-2/+1
- assume that Python 2.4 and 2.5 are compatible and allow checking for fallout. - remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+ default. Modify the others to deal with the removals.
2008-03-13Make PostgreSQL 8.2 the default version. Bump all packages using it.joerg1-2/+2
Remove PostgreSQL 8.0 as choice.
2006-12-28Change PostgreSQL default version to 8.1 and bump revision of alljoerg1-1/+2
packages which have it active by default.
2006-09-09Rename variable MAKEFILE to MAKE_FILE.obache1-2/+2
2006-06-16Fixed pkglint warnings.rillig1-12/+16
2006-06-11Update package to 3.8.1.darcy3-10/+30
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.
2006-06-07Needs Python 2.2+joerg1-1/+2
2006-02-17Update to version 3.8.darcy2-8/+7
- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com> - 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
2006-02-05Recursive revision bump / recommended bump for gettext ABI change.joerg1-1/+2
2005-12-05Fixed pkglint warnings. The warnings are mostly quoting issues, forrillig1-3/+2
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-09-07Upgrade to PyGreSQL 3.7darcy2-7/+7
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.
2005-05-22Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:jlam1-2/+2
USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison
2005-04-11Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.tv1-2/+1
2005-02-23Add RMD160 digests in addition to SHA1 ones.agc1-3/+4
2005-02-23Update package to 3.6.2.darcy2-6/+6
The only change is to fix the handling of primary keys when using namespaces.
2004-12-17Wrong checksum. Updated file. No PKGREVISION bump since the update wasdarcy1-3/+3
so recent.
2004-12-17Remove unneccessary linedarcy1-2/+1
2004-12-16Upgrade to version 3.6.darcy2-6/+6
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
2004-08-30Recreate files for py-postgresql. PyGreSQL has been moved back out of thedarcy4-0/+62
PostgreSQL tree and I have released this version that is no longer tied to a specific version of PostgreSQL.
2004-07-24Delete old postgresql packages now that we have the postgresql73 ones.recht3-58/+0
2004-07-24Use the new mk/pgsql.buildlink3.mk to select the correct PostgreSQLrecht1-2/+2
version.
2004-07-22add python as categoryrecht1-2/+2
ok'd a while back at pkgsrcCon by agc and wiz
2004-04-25bl3ifyrecht1-4/+4
2004-03-26PKGREVISION bump after openssl-security-fix-update to 0.9.6m.wiz1-2/+2
Buildlink files: RECOMMENDED version changed to current version.
2004-02-06If we're passing through MAKEFLAGS variables whose values may containjlam1-2/+2
spaces, use the :Q modifier instead of double-quoting the value. This avoids breakage when executing the just-in-time su targets.
2004-01-20Remove USE_BUILDLINK2 from Makefile.common and distribute the setting tojlam1-1/+3
all of the package Makefiles that include Makefile.common.
2003-08-18cosmetics: use ${PYSITELIB}drochner2-10/+10
2003-07-17s/netbsd.org/NetBSD.org/grant1-2/+2
2003-04-03Build py-postgresql from the postgresql 7.3.2 tarball. PKGREVISION++toshii9-255/+3
Remove files and patches in the py-postgresql directory and add necessary ones in the postgresql directory.
2003-01-05Bump PKGREVISION due to increase in the major number of libpq.so betweenjlam1-1/+2
version 7.2.3 and 7.3.1 of databases/postgresql-lib.