aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/pgenv.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-05-10 15:27:19 +0000
committerBruce Momjian <bruce@momjian.us>1999-05-10 15:27:19 +0000
commit86dacdb74c20d8af6ec900b7cd163df031ab90e4 (patch)
tree5b71bf3eda1c45edcdca8a1c3d5be5178f863674 /src/interfaces/libpq++/pgenv.h
parentd6e33c8b07aeef995d7d4d200d6667383ec849ba (diff)
downloadpostgresql-86dacdb74c20d8af6ec900b7cd163df031ab90e4.tar.gz
postgresql-86dacdb74c20d8af6ec900b7cd163df031ab90e4.zip
libpq++ uses fe_setauthsvc which is deprecated and results in an error
on connection. This patch changes it to use PQconnectdb rather than {fe_setauthsvc,PQsetdb}. This still isn't the complete solution, as there is no provision for user,password in class PgEnv, but it does get rid of the error message. Tested with gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release) under NetBSD-1.3K/i386. Cheers, Patrick Welche
Diffstat (limited to 'src/interfaces/libpq++/pgenv.h')
-rw-r--r--src/interfaces/libpq++/pgenv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/libpq++/pgenv.h b/src/interfaces/libpq++/pgenv.h
index 43068aacce2..e3e8d6303b6 100644
--- a/src/interfaces/libpq++/pgenv.h
+++ b/src/interfaces/libpq++/pgenv.h
@@ -19,6 +19,7 @@
#define PGENV_H
#include <string>
+#include <iostream>
#ifdef __sun__
#ifndef __GNUC__
@@ -79,6 +80,7 @@ public:
protected:
string getenv(const char*);
+ friend ostream& operator << (ostream &, const PgEnv&);
};
#endif // PGENV_H