aboutsummaryrefslogtreecommitdiff
path: root/databases/py-MySQLdb
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-01-09 13:09:26 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-01-09 13:09:26 +0000
commit9ceb3d613b5e4c7ba529dec8adf67c097c351081 (patch)
tree41da19261e4a172678d330f754051c8d07236e04 /databases/py-MySQLdb
parentb18e06b9e531b9dff4dd24939cf8e23b123b8f81 (diff)
downloadports-9ceb3d613b5e4c7ba529dec8adf67c097c351081.tar.gz
ports-9ceb3d613b5e4c7ba529dec8adf67c097c351081.zip
Unbroke with python 2.2.
Notes
Notes: svn path=/head/; revision=52810
Diffstat (limited to 'databases/py-MySQLdb')
-rw-r--r--databases/py-MySQLdb/files/patch-_mysql.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/py-MySQLdb/files/patch-_mysql.c b/databases/py-MySQLdb/files/patch-_mysql.c
new file mode 100644
index 000000000000..fe72118ba2fb
--- /dev/null
+++ b/databases/py-MySQLdb/files/patch-_mysql.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- _mysql.c 2002/01/09 13:02:08 1.1
++++ _mysql.c 2002/01/09 13:06:07
+@@ -781,7 +781,11 @@
+ goto error;
+ }
+ if (!row) {
++#if PY_VERSION_HEX < 0x02020000
+ if (_PyTuple_Resize(r, i, 0) == -1) goto error;
++#else
++ if (_PyTuple_Resize(r, i) == -1) goto error;
++#endif
+ break;
+ }
+ v = convert_row(self, row);