Updated version.

This commit is contained in:
Bruce Momjian 1996-09-26 14:07:07 +00:00
parent f8a84c947a
commit a3e68d902e
3 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
Pginterface 1.0 Pginterface 2.0
Attached is a copy of the Postgres support routines I wrote to allow me 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 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 I have simplified the C code that calls libpq by wrapping all the
functionality of libpq in calls to connectdb(), doquery(), fetch(), 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 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 a global variable that allows you to disable the error checking I
have added to the doquery() routine. have added to the doquery() routine.

View file

@ -1,5 +1,5 @@
/* /*
* insert.c * pgnulltest.c
* *
*/ */

View file

@ -6,8 +6,8 @@
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <time.h> #include <time.h>
#include <libpq-fe.h>
#include "halt.h" #include "halt.h"
#include <libpq-fe.h>
#include "pginterface.h" #include "pginterface.h"
int main(int argc, char **argv) int main(int argc, char **argv)
@ -70,4 +70,3 @@ int main(int argc, char **argv)
return 0; return 0;
} }