This *should* fix the large binary object problem in libpq++ from the

TODO list.

Vince
This commit is contained in:
Bruce Momjian 1999-10-22 19:05:02 +00:00
parent 0e1bfe92c7
commit 95d1f5fa6d
2 changed files with 4 additions and 6 deletions

View File

@ -30,7 +30,7 @@ extern "C" {
#include "libpq-fe.h" #include "libpq-fe.h"
} }
static char rcsid[] = "$Id: libpq++.H,v 1.6 1999/10/06 03:00:16 momjian Exp $"; static char rcsid[] = "$Id: libpq++.H,v 1.7 1999/10/22 19:05:02 momjian Exp $";
// **************************************************************** // ****************************************************************
@ -123,7 +123,7 @@ public:
void Close(); void Close();
int Read(char* buf, int len); int Read(char* buf, int len);
int Write(const char* buf, int len); int Write(const char* buf, int len);
int Lseek(int offset, int whence); int LSeek(int offset, int whence);
int Tell(); int Tell();
int Unlink(); int Unlink();
Oid LOid(); Oid LOid();

View File

@ -10,7 +10,7 @@
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* *
* $Id: pglobject.h,v 1.2 1999/05/23 01:04:03 momjian Exp $ * $Id: pglobject.h,v 1.3 1999/10/22 19:05:02 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -34,6 +34,7 @@ private:
int pgFd; int pgFd;
Oid pgObject; Oid pgObject;
string loStatus; string loStatus;
void Init(Oid lobjId = 0);
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
@ -52,9 +53,6 @@ public:
Oid Import(const char* filename); Oid Import(const char* filename);
int Export(const char* filename); int Export(const char* filename);
string Status(); string Status();
private:
void Init(Oid lobjId = 0);
}; };
#endif // PGLOBJ_H #endif // PGLOBJ_H