mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	The method PgLargeObject::LOid() is missing an implementation in the .cc
file.
The program seems to compile ok, but when linking a program that uses
the call,
g++ chokes with an undefined reference error.
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
I include the code:
Oid PgLargeObject::LOid(){
  return pgObject;
}
in the .cc file.
Chris Traylor
			
			
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
				
			|||||||
 * Copyright (c) 1994, Regents of the University of California
 | 
					 * Copyright (c) 1994, Regents of the University of California
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * IDENTIFICATION
 | 
					 * IDENTIFICATION
 | 
				
			||||||
 *	  $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.9 2002/06/15 18:49:29 momjian Exp $
 | 
					 *	  $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.10 2002/06/15 19:30:40 momjian Exp $
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *-------------------------------------------------------------------------
 | 
					 *-------------------------------------------------------------------------
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@@ -121,7 +121,6 @@ int PgLargeObject::Unlink()
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
void PgLargeObject::Close()
 | 
					void PgLargeObject::Close()
 | 
				
			||||||
{ 
 | 
					{ 
 | 
				
			||||||
  if (pgFd >= 0) lo_close(pgConn, pgFd);
 | 
					  if (pgFd >= 0) lo_close(pgConn, pgFd);
 | 
				
			||||||
@@ -169,3 +168,7 @@ string PgLargeObject::Status() const
 | 
				
			|||||||
{ 
 | 
					{ 
 | 
				
			||||||
  return loStatus; 
 | 
					  return loStatus; 
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Oid PgLargeObject::LOid(){
 | 
				
			||||||
 | 
					  return pgObject;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user