diff options
author | Michael Cummings <mcummings@gentoo.org> | 2007-03-31 12:39:36 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2007-03-31 12:39:36 +0000 |
commit | 36c79c71aec82dee6a905cfedb88183adb556c2f (patch) | |
tree | e744d74c9912a03fdf32f4a0d10133057ec8cd67 /dev-perl/DBD-mysql | |
parent | Version bump, bug #169791 (diff) | |
download | gentoo-2-36c79c71aec82dee6a905cfedb88183adb556c2f.tar.gz gentoo-2-36c79c71aec82dee6a905cfedb88183adb556c2f.tar.bz2 gentoo-2-36c79c71aec82dee6a905cfedb88183adb556c2f.zip |
Fixes for bug 172780, compat with 4.x mysql clients
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-perl/DBD-mysql')
-rw-r--r-- | dev-perl/DBD-mysql/ChangeLog | 9 | ||||
-rw-r--r-- | dev-perl/DBD-mysql/DBD-mysql-4.00.4-r1.ebuild (renamed from dev-perl/DBD-mysql/DBD-mysql-4.00.4.ebuild) | 3 | ||||
-rw-r--r-- | dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4-r1 (renamed from dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4) | 0 | ||||
-rw-r--r-- | dev-perl/DBD-mysql/files/sqlstate-purge.patch | 100 |
4 files changed, 110 insertions, 2 deletions
diff --git a/dev-perl/DBD-mysql/ChangeLog b/dev-perl/DBD-mysql/ChangeLog index 4117f06876b6..eac098abb2d5 100644 --- a/dev-perl/DBD-mysql/ChangeLog +++ b/dev-perl/DBD-mysql/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-perl/DBD-mysql # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/ChangeLog,v 1.72 2007/03/30 14:18:54 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/ChangeLog,v 1.73 2007/03/31 12:39:36 mcummings Exp $ + +*DBD-mysql-4.00.4-r1 (31 Mar 2007) + + 31 Mar 2007; Michael Cummings <mcummings@gentoo.org> + +files/sqlstate-purge.patch, -DBD-mysql-4.00.4.ebuild, + +DBD-mysql-4.00.4-r1.ebuild: + Fixes for bug 172780, compat with 4.x mysql clients *DBD-mysql-4.00.4 (30 Mar 2007) diff --git a/dev-perl/DBD-mysql/DBD-mysql-4.00.4.ebuild b/dev-perl/DBD-mysql/DBD-mysql-4.00.4-r1.ebuild index 00b723a6d275..702a3bcc7cc9 100644 --- a/dev-perl/DBD-mysql/DBD-mysql-4.00.4.ebuild +++ b/dev-perl/DBD-mysql/DBD-mysql-4.00.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.00.4.ebuild,v 1.1 2007/03/30 14:18:54 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.00.4-r1.ebuild,v 1.1 2007/03/31 12:39:36 mcummings Exp $ inherit eutils perl-module versionator @@ -17,6 +17,7 @@ LICENSE="|| ( Artistic GPL-2 )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" IUSE="" +PATCHES="${FILESDIR}/sqlstate-purge.patch" DEPEND="dev-lang/perl dev-perl/DBI diff --git a/dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4 b/dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4-r1 index 796c6213252f..796c6213252f 100644 --- a/dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4 +++ b/dev-perl/DBD-mysql/files/digest-DBD-mysql-4.00.4-r1 diff --git a/dev-perl/DBD-mysql/files/sqlstate-purge.patch b/dev-perl/DBD-mysql/files/sqlstate-purge.patch new file mode 100644 index 000000000000..5cec451ebc4a --- /dev/null +++ b/dev-perl/DBD-mysql/files/sqlstate-purge.patch @@ -0,0 +1,100 @@ +diff -Naurp DBD-mysql-4.004.old/dbdimp.c DBD-mysql-4.004/dbdimp.c +--- DBD-mysql-4.004.old/dbdimp.c 2007-03-20 09:37:12.000000000 -0400 ++++ DBD-mysql-4.004/dbdimp.c 2007-03-31 07:26:48.000000000 -0400 +@@ -3423,11 +3423,7 @@ dbd_st_fetch(SV *sth, imp_sth_t* imp_sth + if (!imp_sth->result) + { + do_error(sth, JW_ERR_SEQUENCE, "fetch() without execute()" +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + ,NULL); +-#else +- ); +-#endif + return Nullav; + } + +@@ -3587,12 +3583,7 @@ dbd_st_fetch(SV *sth, imp_sth_t* imp_sth + if (mysql_errno(&imp_dbh->mysql)) + do_error(sth, mysql_errno(&imp_dbh->mysql), + mysql_error(&imp_dbh->mysql) +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + , mysql_sqlstate(&imp_dbh->mysql)); +-#else +- ); +-#endif +- + + #if MYSQL_VERSION_ID >= MULTIPLE_RESULT_SET_VERSION + if (!mysql_more_results(svsock)) +@@ -3925,11 +3916,7 @@ dbd_st_FETCH_internal( + /* Are we asking for a legal value? */ + if (what < 0 || what >= AV_ATTRIB_LAST) + do_error(sth, JW_ERR_NOT_IMPLEMENTED, "Not implemented" +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + , NULL); +-#else +- ); +-#endif + + /* Return cached value, if possible */ + else if (cacheit && imp_sth->av_attr[what]) +@@ -3939,11 +3926,7 @@ dbd_st_FETCH_internal( + else if (!res) + do_error(sth, JW_ERR_NOT_ACTIVE, + "statement contains no result" +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + ,NULL); +-#else +- ); +-#endif + /* Do the real work. */ + else + { +@@ -4258,11 +4241,7 @@ int dbd_bind_ph (SV *sth, imp_sth_t *imp + { + do_error(sth, JW_ERR_ILLEGAL_PARAM_NUM, + "Illegal parameter number" +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + , NULL); +-#else +- ); +-#endif + return FALSE; + } + +@@ -4285,11 +4264,7 @@ int dbd_bind_ph (SV *sth, imp_sth_t *imp + "Binding non-numeric field %d, value %s as a numeric!", + param_num, neatsvpv(value,0)); + do_error(sth, JW_ERR_ILLEGAL_PARAM_NUM, err_msg +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + ,NULL); +-#else +- ); +-#endif + } + } + +@@ -4297,11 +4272,7 @@ int dbd_bind_ph (SV *sth, imp_sth_t *imp + { + do_error(sth, JW_ERR_NOT_IMPLEMENTED, + "Output parameters not implemented" +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + ,NULL); +-#else +- ); +-#endif + return FALSE; + } + +@@ -4459,11 +4430,7 @@ int mysql_db_reconnect(SV* h) + if (!my_login(h, imp_dbh)) + { + do_error(h, mysql_errno(&imp_dbh->mysql), mysql_error(&imp_dbh->mysql) +-#if MYSQL_VERSION_ID >= SQL_STATE_VERSION + , mysql_sqlstate(&imp_dbh->mysql)); +-#else +- ); +-#endif + memcpy (&imp_dbh->mysql, &save_socket, sizeof(save_socket)); + ++imp_dbh->stats.auto_reconnects_failed; + return FALSE; |