summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/examples/testlibpq0.cc
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-05-23 01:04:07 +0000
committerBruce Momjian <bruce@momjian.us>1999-05-23 01:04:07 +0000
commitb14c99d8d6bdb3155fe54e6f24e8aac32a09ed81 (patch)
tree0b63fc00dfff28c643cfafe587777ab11e5733c5 /src/interfaces/libpq++/examples/testlibpq0.cc
parent795f6ca66ab734559e6eed7a9466eb19b58f3166 (diff)
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.
Diffstat (limited to 'src/interfaces/libpq++/examples/testlibpq0.cc')
-rw-r--r--src/interfaces/libpq++/examples/testlibpq0.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq++/examples/testlibpq0.cc b/src/interfaces/libpq++/examples/testlibpq0.cc
index 43f8e93d15e..d432aab52fa 100644
--- a/src/interfaces/libpq++/examples/testlibpq0.cc
+++ b/src/interfaces/libpq++/examples/testlibpq0.cc
@@ -9,18 +9,18 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.3 1997/02/13 10:00:42 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.4 1999/05/23 01:04:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <iostream.h>
-#include <libpq++.h>
+#include <libpq++.H>
int main()
{
// Open the connection to the database and make sure it's OK
- PgDatabase data("template1");
+ PgDatabase data("dbname=template1");
if ( data.ConnectionBad() ) {
cout << "Connection was unsuccessful..." << endl
<< "Error message returned: " << data.ErrorMessage() << endl;