Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
a3e68d90
Commit
a3e68d90
authored
28 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Updated version.
parent
f8a84c94
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contrib/pginterface/README
+2
-2
2 additions, 2 deletions
contrib/pginterface/README
contrib/pginterface/pgnulltest.c
+1
-1
1 addition, 1 deletion
contrib/pginterface/pgnulltest.c
contrib/pginterface/pgwordcount.c
+1
-2
1 addition, 2 deletions
contrib/pginterface/pgwordcount.c
with
4 additions
and
5 deletions
contrib/pginterface/README
+
2
−
2
View file @
a3e68d90
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:
...
@@ -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(),
fetch
is
null() and disconnectdb(). Each call returns a structure or
fetch
with
null
s
() 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.
...
...
This diff is collapsed.
Click to expand it.
contrib/pginterface/pgnulltest.c
+
1
−
1
View file @
a3e68d90
/*
/*
*
inser
t.c
*
pgnulltes
t.c
*
*
*/
*/
...
...
This diff is collapsed.
Click to expand it.
contrib/pginterface/pgwordcount.c
+
1
−
2
View file @
a3e68d90
...
@@ -6,8 +6,8 @@
...
@@ -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)
...
@@ -70,4 +70,3 @@ int main(int argc, char **argv)
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment