summaryrefslogtreecommitdiff
path: root/databases/py-mssql/patches
diff options
context:
space:
mode:
authorobache <obache>2012-04-26 12:57:51 +0000
committerobache <obache>2012-04-26 12:57:51 +0000
commite2251f0ec00193c9cb2a7c83ccb469bbb008c278 (patch)
treefd120b78de6dd34f8de8dc92a946435993fb35f3 /databases/py-mssql/patches
parent2fd7ba66a2d6540c0e761b3c8316f6dc41d9c79e (diff)
downloadpkgsrc-e2251f0ec00193c9cb2a7c83ccb469bbb008c278.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/py-mssql/patches')
-rw-r--r--databases/py-mssql/patches/patch-mssqldbmodule_c18
1 files changed, 9 insertions, 9 deletions
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