From 9eb69977fe53b70a76d743278d0a2393a495c231 Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Sun, 5 Dec 1999 19:29:37 +0000 Subject: [PATCH] This *should* fix the large object segfault problem. Note linewrap may be interfering with last line of patch. Vince. --- src/interfaces/libpq++/libpq++.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/interfaces/libpq++/libpq++.h b/src/interfaces/libpq++/libpq++.h index 5631ded2f77..800b153c12c 100644 --- a/src/interfaces/libpq++/libpq++.h +++ b/src/interfaces/libpq++/libpq++.h @@ -30,7 +30,7 @@ extern "C" { #include "libpq-fe.h" } -static char rcsid[] = "$Id: libpq++.h,v 1.3 1999/12/03 17:35:05 momjian Exp $"; +static char rcsid[] = "$Id: libpq++.h,v 1.4 1999/12/05 19:29:37 momjian Exp $"; // **************************************************************** @@ -113,6 +113,11 @@ public: // // **************************************************************** class PgLargeObject : public PgConnection { +private: + int pgFd; + Oid pgObject; + string loStatus; + public: PgLargeObject(const char* conninfo = 0); // use reasonable defaults and create large object PgLargeObject(Oid lobjId, const char* conninfo = 0); // use reasonable defaults and open large object -- GitLab