mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Here it is. Remove or rename the current interfaces/libpq++ and untar
this file in interfaces/ It will all need to be checked in. I used the char *rcsid[] method for cvs ids so it can be strings | grep'd to find version numbers. The new version for the library is 3.0. Run configure from src/ to create the Makefile and it should be good to go. I did minimal documentation references in the README, I'll see if I can get something to Tom Lockhart rather quickly. Vince.
This commit is contained in:
@@ -19,7 +19,7 @@ INSERT INTO TBL1 values (10);
|
||||
*
|
||||
*/
|
||||
#include <iostream.h>
|
||||
#include <libpq++.h>
|
||||
#include <libpq++.H>
|
||||
#include <stdlib.h>
|
||||
|
||||
main()
|
||||
@@ -27,7 +27,7 @@ main()
|
||||
// Begin, by connecting to the backend using hardwired constants
|
||||
// and a test database created by the user prior to the invokation
|
||||
// of this test program.
|
||||
char* dbName = getenv("USER"); // change this to the name of your test database
|
||||
char* dbName = "dbname=template1";
|
||||
PgDatabase data(dbName);
|
||||
|
||||
// Check to see that the backend connection was successfully made
|
||||
|
Reference in New Issue
Block a user