aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/examples/testlibpq3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq++/examples/testlibpq3.cc')
-rw-r--r--src/interfaces/libpq++/examples/testlibpq3.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq++/examples/testlibpq3.cc b/src/interfaces/libpq++/examples/testlibpq3.cc
index 3c4e6ec429f..924c0c565c3 100644
--- a/src/interfaces/libpq++/examples/testlibpq3.cc
+++ b/src/interfaces/libpq++/examples/testlibpq3.cc
@@ -9,7 +9,7 @@
#include <iostream.h>
#include <iomanip.h>
-#include <libpq++.h>
+#include <libpq++.H>
int main()
{
@@ -19,7 +19,7 @@ int main()
// or, failing that, using hardwired constants.
// Create a cursor database query object.
// All queries using cursor will be performed through this object.
- const char* dbName = "template1";
+ const char* dbName = "dbname=template1";
PgCursor cData(dbName, "myportal");
// check to see that the backend connection was successfully made