From 873bfdc45bafec09b62a5368a799e3ca18eae999 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 22 Oct 2007 10:21:26 +0000 Subject: [PATCH] Add more patches git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5777 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/2.2.5-postgresql-errors.patch | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bacula/patches/2.2.5-postgresql-errors.patch diff --git a/bacula/patches/2.2.5-postgresql-errors.patch b/bacula/patches/2.2.5-postgresql-errors.patch new file mode 100644 index 0000000000..fb52b80dd2 --- /dev/null +++ b/bacula/patches/2.2.5-postgresql-errors.patch @@ -0,0 +1,28 @@ + After a sql error, the error message that is printed + is incorrect and does not include the postgresql error message. + It fixes #989 + + This patch applies to Bacula version 2.2.5 (and previous versions), + and can be applied with the following: + + cd + patch -p0 <2.2.5-postgresql-errors.patch + ./configure (your options) + make + ... + make install + + +Index: src/cats/cats.h +=================================================================== +--- src/cats/cats.h (révision 5763) ++++ src/cats/cats.h (copie de travail) +@@ -498,7 +498,7 @@ + #define sql_fetch_row(x) my_postgresql_fetch_row(x) + #define sql_query(x, y) my_postgresql_query((x), (y)) + #define sql_close(x) PQfinish((x)->db) +-#define sql_strerror(x) PQresultErrorMessage((x)->result) ++#define sql_strerror(x) PQerrorMessage((x)->db) + #define sql_num_rows(x) ((unsigned) PQntuples((x)->result)) + #define sql_data_seek(x, i) my_postgresql_data_seek((x), (i)) + #define sql_affected_rows(x) ((unsigned) atoi(PQcmdTuples((x)->result))) -- 2.39.5