[SCM] Debian packaging of DBD-Firebird CPAN distribution branch, master, updated. 734129c51950f86f5c59658ca65f95da9bbc87ab
Damyan Ivanov
dmn at debian.org
Tue Aug 30 09:02:38 UTC 2011
The following commit has been merged in the master branch:
commit af554f566f0e381c4769eaa681549cb517408619
Author: Damyan Ivanov <dmn at debian.org>
Date: Tue Aug 30 11:47:01 2011 +0300
add fix-ping.patch, fixing ping() behaviour with firebird 2.5
diff --git a/debian/patches/fix-ping.patch b/debian/patches/fix-ping.patch
new file mode 100644
index 0000000..1607dbe
--- /dev/null
+++ b/debian/patches/fix-ping.patch
@@ -0,0 +1,26 @@
+Description: fix ping() so that it has a chance to succeed
+ isc_database_info() does not work when not supplied with request items
+ At least this is the case with Firebird 2.5.
+ The patch fixes that by querying the database ODS version, which should
+ work with any server/client version.
+Author: Damyan Ivanov <dmn at debian.org>
+Forwarded: no
+
+--- a/dbdimp.c
++++ b/dbdimp.c
+@@ -474,10 +474,14 @@ int dbd_db_ping(SV *dbh)
+ ISC_STATUS status[ISC_STATUS_LENGTH];
+
+ char buffer[100];
++ char req[] = {
++ isc_info_ods_version,
++ isc_info_end
++ };
+
+ DBI_TRACE_imp_xxh(imp_dbh, 1, (DBIc_LOGPIO(imp_dbh), "dbd_db_ping\n"));
+
+- if (isc_database_info(status, &(imp_dbh->db), 0, NULL, sizeof(buffer), buffer))
++ if (isc_database_info(status, &(imp_dbh->db), sizeof(req), req, sizeof(buffer), buffer))
+ if (ib_error_check(dbh, status))
+ return FALSE;
+ return TRUE;
--
Debian packaging of DBD-Firebird CPAN distribution
More information about the Pkg-perl-cvs-commits
mailing list