aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1996-09-26 14:07:07 +0000
committerBruce Momjian <bruce@momjian.us>1996-09-26 14:07:07 +0000
commita3e68d902e36c99c6320dd5e3280bb6c9c1e7607 (patch)
treeae8a879d68f142848115674a5ac0eb8d2eea0e79
parentf8a84c947a9647f8e09884bd981c3f4f27d6f637 (diff)
downloadpostgresql-a3e68d902e36c99c6320dd5e3280bb6c9c1e7607.tar.gz
postgresql-a3e68d902e36c99c6320dd5e3280bb6c9c1e7607.zip
Updated version.
-rw-r--r--contrib/pginterface/README4
-rw-r--r--contrib/pginterface/pgnulltest.c2
-rw-r--r--contrib/pginterface/pgwordcount.c3
3 files changed, 4 insertions, 5 deletions
diff --git a/contrib/pginterface/README b/contrib/pginterface/README
index 7a82b36305c..c52b5d1190a 100644
--- a/contrib/pginterface/README
+++ b/contrib/pginterface/README
@@ -1,6 +1,6 @@
- Pginterface 1.0
+ Pginterface 2.0
Attached is a copy of the Postgres support routines I wrote to allow me
to more cleanly interface to the libpg library, more like a 4gl SQL
@@ -10,7 +10,7 @@ It has several features that may be useful for others:
I have simplified the C code that calls libpq by wrapping all the
functionality of libpq in calls to connectdb(), doquery(), fetch(),
-fetchisnull() and disconnectdb(). Each call returns a structure or
+fetchwithnulls() and disconnectdb(). Each call returns a structure or
value, so if you need to do more work with the result, you can. Also, I
have a global variable that allows you to disable the error checking I
have added to the doquery() routine.
diff --git a/contrib/pginterface/pgnulltest.c b/contrib/pginterface/pgnulltest.c
index b99292113d8..283106f726d 100644
--- a/contrib/pginterface/pgnulltest.c
+++ b/contrib/pginterface/pgnulltest.c
@@ -1,5 +1,5 @@
/*
- * insert.c
+ * pgnulltest.c
*
*/
diff --git a/contrib/pginterface/pgwordcount.c b/contrib/pginterface/pgwordcount.c
index 4e36cc0423d..437f64a064a 100644
--- a/contrib/pginterface/pgwordcount.c
+++ b/contrib/pginterface/pgwordcount.c
@@ -6,8 +6,8 @@
#include <stdio.h>
#include <signal.h>
#include <time.h>
-#include <libpq-fe.h>
#include "halt.h"
+#include <libpq-fe.h>
#include "pginterface.h"
int main(int argc, char **argv)
@@ -70,4 +70,3 @@ int main(int argc, char **argv)
return 0;
}
-