From: Eric Bollengier Date: Thu, 18 Oct 2007 21:00:14 +0000 (+0000) Subject: ebl Use PQerrorMessage instead of PQresultErrorMessage in postgresql X-Git-Tag: Release-3.0.0~2370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a61e2cf3920c2850e8d56ed8e57aeb64c5f02533;p=bacula%2Fbacula ebl Use PQerrorMessage instead of PQresultErrorMessage in postgresql backend (sql_strerror). Fixe bug #989 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5763 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/cats.h b/bacula/src/cats/cats.h index f774612a23..e399624307 100644 --- a/bacula/src/cats/cats.h +++ b/bacula/src/cats/cats.h @@ -498,7 +498,7 @@ extern const char* my_pg_batch_fill_path_query; #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))) diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 200d24e750..71277ab32a 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,9 @@ Technical notes on version 2.3 General: +18Oct07 +ebl Use PQerrorMessage instead of PQresultErrorMessage in postgresql + backend (sql_strerror). Fixe bug #989 16Oct07 kes Add PATH command to SunOS part of mtx-changer.in so that sed and awk are on the path.