diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-01-09 21:09:26 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-01-09 21:09:26 +0800 |
commit | 54b555871eabc5242e08fbba915083d030cb1bcc (patch) | |
tree | 700a5eb87d338f355ced7d3efa1ca70bab1da7e6 /databases/py-MySQLdb-devel | |
parent | 2a3fb896f78f7f9ea889c0a7b03ef5a61a5091e4 (diff) | |
download | freebsd-ports-gnome-54b555871eabc5242e08fbba915083d030cb1bcc.tar.gz freebsd-ports-gnome-54b555871eabc5242e08fbba915083d030cb1bcc.tar.zst freebsd-ports-gnome-54b555871eabc5242e08fbba915083d030cb1bcc.zip |
Unbroke with python 2.2.
Diffstat (limited to 'databases/py-MySQLdb-devel')
-rw-r--r-- | databases/py-MySQLdb-devel/files/patch-_mysql.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/py-MySQLdb-devel/files/patch-_mysql.c b/databases/py-MySQLdb-devel/files/patch-_mysql.c new file mode 100644 index 000000000000..fe72118ba2fb --- /dev/null +++ b/databases/py-MySQLdb-devel/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); |