diff options
author | ale <ale@FreeBSD.org> | 2008-02-18 05:42:05 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2008-02-18 05:42:05 +0800 |
commit | f43d7319fc9332244432f45510a7cccb3ad2f7b2 (patch) | |
tree | 3dac75fbde4ea8051b1c0232156324b4fb833d80 /databases | |
parent | b270590968388df84ac8fd2b594c774bcd79e024 (diff) | |
download | freebsd-ports-gnome-f43d7319fc9332244432f45510a7cccb3ad2f7b2.tar.gz freebsd-ports-gnome-f43d7319fc9332244432f45510a7cccb3ad2f7b2.tar.zst freebsd-ports-gnome-f43d7319fc9332244432f45510a7cccb3ad2f7b2.zip |
Fix build with mysql 5.1.23.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/p5-DBD-mysql/files/patch-dbdimp.c | 26 |
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) |