Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a3e68d90
Commit
a3e68d90
authored
Sep 26, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated version.
parent
f8a84c94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
contrib/pginterface/README
contrib/pginterface/README
+2
-2
contrib/pginterface/pgnulltest.c
contrib/pginterface/pgnulltest.c
+1
-1
contrib/pginterface/pgwordcount.c
contrib/pginterface/pgwordcount.c
+1
-2
No files found.
contrib/pginterface/README
View file @
a3e68d90
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(),
fetch
isnull
() and disconnectdb(). Each call returns a structure or
fetch
withnulls
() 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.
...
...
contrib/pginterface/pgnulltest.c
View file @
a3e68d90
/*
*
inser
t.c
*
pgnulltes
t.c
*
*/
...
...
contrib/pginterface/pgwordcount.c
View file @
a3e68d90
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment