aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBD-mysql
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2008-02-17 21:42:05 +0000
committerAlex Dupre <ale@FreeBSD.org>2008-02-17 21:42:05 +0000
commit8dae7d08c8db97301094bd7771179e9f02a2e7e1 (patch)
tree7c6d1e76b3298d63cb767bbd76827a2075f1b4f0 /databases/p5-DBD-mysql
parent66a6523d9a4083ad248899aff7b09b157869890f (diff)
downloadports-8dae7d08c8db97301094bd7771179e9f02a2e7e1.tar.gz
ports-8dae7d08c8db97301094bd7771179e9f02a2e7e1.zip
Notes
Diffstat (limited to 'databases/p5-DBD-mysql')
-rw-r--r--databases/p5-DBD-mysql/files/patch-dbdimp.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/databases/p5-DBD-mysql/files/patch-dbdimp.c b/databases/p5-DBD-mysql/files/patch-dbdimp.c
new file mode 100644
index 000000000000..9fca249a4e73
--- /dev/null
+++ b/databases/p5-DBD-mysql/files/patch-dbdimp.c
@@ -0,0 +1,26 @@
+--- dbdimp.c.orig 2008-02-17 22:36:16.000000000 +0100
++++ dbdimp.c 2008-02-17 22:39:27.000000000 +0100
+@@ -2760,7 +2760,11 @@
+
+ imp_sth->done_desc = 0;
+ }
++#if MYSQL_VERSION_ID > 50122
++ (imp_dbh->mysql).net.client_last_errno= 0;
++#else
+ (imp_dbh->mysql).net.last_errno= 0;
++#endif
+ return 1;
+ }
+ }
+@@ -3362,7 +3366,11 @@
+ }
+
+ /* fix from 2.9008 */
++#if MYSQL_VERSION_ID > 50122
++ (imp_dbh->mysql).net.client_last_errno = 0;
++#else
+ (imp_dbh->mysql).net.last_errno = 0;
++#endif
+
+ #if MYSQL_VERSION_ID >=SERVER_PREPARE_VERSION
+ if (imp_sth->use_server_side_prepare)