mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	This *should* fix the large object segfault problem. Note linewrap may
be interfering with last line of patch. Vince.
This commit is contained in:
		@@ -30,7 +30,7 @@ extern "C" {
 | 
				
			|||||||
#include "libpq-fe.h"
 | 
					#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 {
 | 
					class PgLargeObject : public PgConnection {
 | 
				
			||||||
 | 
					private:
 | 
				
			||||||
 | 
					  int pgFd;
 | 
				
			||||||
 | 
					  Oid pgObject;
 | 
				
			||||||
 | 
					  string loStatus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  PgLargeObject(const char* conninfo = 0);   // use reasonable defaults and create large object
 | 
					  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
 | 
					  PgLargeObject(Oid lobjId, const char* conninfo = 0); // use reasonable defaults and open large object
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user