diff options
author | obache <obache@pkgsrc.org> | 2012-04-26 12:57:51 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-04-26 12:57:51 +0000 |
commit | 65accebe0b856028107c57ecf5a0195bdee1ab1b (patch) | |
tree | fd120b78de6dd34f8de8dc92a946435993fb35f3 /databases | |
parent | b8a5bf8a88f680d1bab56a64fa439adade3e2e21 (diff) | |
download | pkgsrc-65accebe0b856028107c57ecf5a0195bdee1ab1b.tar.gz |
Update py-mssql to 1.0.2.
Based on maintainer update request per PR 46084.
(let to register egg-info, set LICENSE, fix DOS style EOL of some files)
Changes since 0.8.0:
Tue Apr 23 23:00:00 2009 Andrzej Kukula <akukula@gmail.com>
+ bugfix: fixed rare quoting bug in select_db()
+ feature: added 'max_conn' parameter to pymssql.connect() and
_mssql.connect() which defaults to 25, thanks Daniel Watrous
<dwmaillist@gmail.com>
* nagios-plugin update - thanks Josselin Mouette <joss@debian.org>:
+ Include a -P port option, to avoid having to passing it with the
host name
+ Fix the encoding of the comments; utf-8 is the declared encoding
of the file and must be followed
+ Fix a typo in the SQL syntax
+ Connect explicitly to the "master" database (required since 1.0.0)
+ Improve perfdata output.
* version 1.0.2
Tue Apr 21 22:56:00 2009 Andrzej Kukula <akukula@gmail.com>
* mssqldbmodule.c:
+ bugfix in format_and_run_query(): query strings were sometimes
overwritten with garbage due to DECREF in wrong place; thanks
Igor Nazarenko <igor.n.nazarenko@gmail.com>
+ bugfix in get_result(): if a query batch contained DECLARE or
possibly other T-SQL statements, no results were returned
thanks Kay Schluehr <schluehrk@users.sourceforge.net>
+ bugfix in execute_scalar(): check if there are any columns in result
+ bugfix: check for FAIL after each dbnextrow()
+ feature: Add support for bigint - #2660972; thanks Alexandr
Zamaraev <shura_zam@users.sourceforge.net>
* pymssql.c:
+ bugfix in execute(): if execute is called without second argument,
don't treat '%' in query string as formatting character; restored
compatibility with common sense and with pymssql < 1.0.0; thanks
Corey Bertram <corey.bertram@monitoredsecurity.com>,
Wes McKinney <wesmckinn@gmail.com>
+ feature: it is possible to specify 'as_dict' to pymssql.connect
and rows will be returned as dictionaries instead of tuples;
thanks Daniel Watrous <dwmaillist@gmail.com>
Thu Jan 30 18:36:00 2009 Andrzej Kukula <akukula@gmail.com>
* mssqldbmodule.c:
+ Pyssize_t error on x64 - thanks Josselin Mouette <joss@debian.org>
+ critical charset updates, thanks Josselin Mouette <joss@debian.org>
+ more Py_ssize_t updates, further code cleanups
+ fixed some compiler warnings
* pymssql.py:
+ execute() failed, thanks Josselin Mouette <joss@debian.org>
+ critical charset updates, thanks Josselin Mouette <joss@debian.org>
+ removed warnings, users don't want them and they are not 'MUST'
priority in DB-API spec
* nagios-plugin: introducted Nagios plugin, thanks Julien Blache
and Josselin Mouette
* version 1.0.1
Thu Jan 29 19:23:00 2009 Andrzej Kukula <akukula@gmail.com>
* version 1.0.0
* so many changes I'll not put them here, I'll document
changes from now on.
Mon Sep 25 20:18:00 2006 Andrzej Kukula <akukula@gmail.com>
* setup.py: fix for Fink (http://Fink.SF.Net) under OS X (thanks
Terrence Brannon <metaperl@gmail.com>)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-mssql/Makefile | 17 | ||||
-rw-r--r-- | databases/py-mssql/PLIST | 3 | ||||
-rw-r--r-- | databases/py-mssql/distinfo | 10 | ||||
-rw-r--r-- | databases/py-mssql/patches/patch-mssqldbmodule_c | 18 |
4 files changed, 26 insertions, 22 deletions
diff --git a/databases/py-mssql/Makefile b/databases/py-mssql/Makefile index 0ae2b2d9e0e..9e241e99528 100644 --- a/databases/py-mssql/Makefile +++ b/databases/py-mssql/Makefile @@ -1,23 +1,26 @@ -# $NetBSD: Makefile,v 1.12 2011/06/14 11:23:15 obache Exp $ +# $NetBSD: Makefile,v 1.13 2012/04/26 12:57:51 obache Exp $ # -DISTNAME= pymssql-0.8.0 +DISTNAME= pymssql-1.0.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} -PKGREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pymssql/} MAINTAINER= bartosz.kuzma@gmail.com HOMEPAGE= http://pymssql.sourceforge.net/ COMMENT= Python interface to MS SQL +LICENSE= gnu-lgpl-v2.1 PKG_DESTDIR_SUPPORT= user-destdir -BUILDLINK_API_DEPENDS.freetds+= freetds>=0.63 +SUBST_CLASSES+= crlf +SUBST_MESSAGE.crlf= stripping EOL CR +SUBST_STAGE.crlf= post-extract +SUBST_FILES.crlf= mssqldbmodule.c pymssql.py +SUBST_FILTER_CMD.crlf= ${TR} -d '\r' -PYDISTUTILSPKG= yes +BUILDLINK_API_DEPENDS.freetds+= freetds>=0.63 .include "../../databases/freetds/buildlink3.mk" -.include "../../lang/python/application.mk" -.include "../../lang/python/extension.mk" +.include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk" diff --git a/databases/py-mssql/PLIST b/databases/py-mssql/PLIST index a373cf7e01c..ed5d36b98c4 100644 --- a/databases/py-mssql/PLIST +++ b/databases/py-mssql/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/14 03:10:00 minskim Exp $ +@comment $NetBSD: PLIST,v 1.2 2012/04/26 12:57:51 obache Exp $ ${PYSITELIB}/_mssql.so +${PYSITELIB}/${EGG_FILE} ${PYSITELIB}/pymssql.py ${PYSITELIB}/pymssql.pyc ${PYSITELIB}/pymssql.pyo diff --git a/databases/py-mssql/distinfo b/databases/py-mssql/distinfo index 3e475579f08..94375e2318f 100644 --- a/databases/py-mssql/distinfo +++ b/databases/py-mssql/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2011/10/14 04:14:35 dholland Exp $ +$NetBSD: distinfo,v 1.5 2012/04/26 12:57:51 obache Exp $ -SHA1 (pymssql-0.8.0.tar.gz) = e06618f2023ef2b7f6901479d7e3b6c56cecf323 -RMD160 (pymssql-0.8.0.tar.gz) = d55535d9e17bc79a3f3cda040fc13edd7c3c74d6 -Size (pymssql-0.8.0.tar.gz) = 158030 bytes -SHA1 (patch-mssqldbmodule_c) = 838189627666cbffbb324da7238289e78080c63c +SHA1 (pymssql-1.0.2.tar.gz) = e35b1a68285728cfe06b193c57c13059e65f5691 +RMD160 (pymssql-1.0.2.tar.gz) = 9130ac3e8a7e489470e8411750c07e91a2a30da7 +Size (pymssql-1.0.2.tar.gz) = 175469 bytes +SHA1 (patch-mssqldbmodule_c) = 32bbb2ded495f517974634b1d90b7ffdef26c781 diff --git a/databases/py-mssql/patches/patch-mssqldbmodule_c b/databases/py-mssql/patches/patch-mssqldbmodule_c index 5b8e18d1973..c3eac292c4d 100644 --- a/databases/py-mssql/patches/patch-mssqldbmodule_c +++ b/databases/py-mssql/patches/patch-mssqldbmodule_c @@ -1,16 +1,16 @@ -$NetBSD: patch-mssqldbmodule_c,v 1.1 2011/10/14 04:14:36 dholland Exp $ +$NetBSD: patch-mssqldbmodule_c,v 1.2 2012/04/26 12:57:51 obache Exp $ Fix build with latest freetds, which now provides BYTE and LPBYTE. ---- mssqldbmodule.c~ 2006-09-22 19:44:17.000000000 +0000 +--- mssqldbmodule.c.orig 2012-04-26 12:47:37.000000000 +0000 +++ mssqldbmodule.c -@@ -67,9 +67,6 @@ - #define SQLVARCHAR SYBVARCHAR - #define SQLCHAR SYBCHAR - #define SQLTEXT SYBTEXT +@@ -83,9 +83,6 @@ typedef int Py_ssize_t; + #define SQLVARCHAR SYBVARCHAR + #define SQLCHAR SYBCHAR + #define SQLTEXT SYBTEXT - -- #define BYTE unsigned char -- typedef unsigned char *LPBYTE; +-#define BYTE unsigned char +-typedef unsigned char *LPBYTE; #endif - #define TYPE_STRING 1 + #define TYPE_STRING 1 |