projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd604f
)
Update pgeasy examples
author
Bruce Momjian
<bruce@momjian.us>
Fri, 28 Apr 2000 22:49:25 +0000
(22:49 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 28 Apr 2000 22:49:25 +0000
(22:49 +0000)
contrib/findoidjoins/findoidjoins.c
patch
|
blob
|
blame
|
history
src/interfaces/libpgeasy/examples/pginsert.c
patch
|
blob
|
blame
|
history
src/interfaces/libpgeasy/examples/pgnulltest.c
patch
|
blob
|
blame
|
history
src/interfaces/libpgeasy/examples/pgwordcount.c
patch
|
blob
|
blame
|
history
src/interfaces/libpgeasy/libpgeasy.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/findoidjoins/findoidjoins.c
b/contrib/findoidjoins/findoidjoins.c
index 226cf24388aeb394ccd5429cc448f6895d828d64..56e936b8a57ee72046b8f6d0e2e161558e1bed93 100644
(file)
--- a/
contrib/findoidjoins/findoidjoins.c
+++ b/
contrib/findoidjoins/findoidjoins.c
@@
-8,7
+8,7
@@
#include "libpq-fe.h"
#include "halt.h"
-#include
"libpgeasy.h"
+#include
<libpgeasy.h>
PGresult *attres,
*relres;
diff --git
a/src/interfaces/libpgeasy/examples/pginsert.c
b/src/interfaces/libpgeasy/examples/pginsert.c
index 18b5382ede711b51b1454c227bf5ac8f3a4f75c9..933d0ab1829811d8c50107016825bd77ba96e986 100644
(file)
--- a/
src/interfaces/libpgeasy/examples/pginsert.c
+++ b/
src/interfaces/libpgeasy/examples/pginsert.c
@@
-7,7
+7,7
@@
#include <time.h>
#include <libpq-fe.h>
#include "../halt.h"
-#include
"libpgeasy.h"
+#include
<libpgeasy.h>
int
main(int argc, char **argv)
diff --git
a/src/interfaces/libpgeasy/examples/pgnulltest.c
b/src/interfaces/libpgeasy/examples/pgnulltest.c
index da88efbbe48b4513a3edc1904769786ff005bcec..7fd8c7f9e275982f3277b193149e71db226a3159 100644
(file)
--- a/
src/interfaces/libpgeasy/examples/pgnulltest.c
+++ b/
src/interfaces/libpgeasy/examples/pgnulltest.c
@@
-9,7
+9,7
@@
#include <time.h>
#include <libpq-fe.h>
#include "../halt.h"
-#include
"libpgeasy.h"
+#include
<libpgeasy.h>
int
main(int argc, char **argv)
diff --git
a/src/interfaces/libpgeasy/examples/pgwordcount.c
b/src/interfaces/libpgeasy/examples/pgwordcount.c
index 08138510ea88d70405a897b400e3a4546bb85b93..df8d5b9d0c28d5acfdd9eebda3cd604db942e23b 100644
(file)
--- a/
src/interfaces/libpgeasy/examples/pgwordcount.c
+++ b/
src/interfaces/libpgeasy/examples/pgwordcount.c
@@
-6,7
+6,7
@@
#include <stdio.h>
#include <libpq-fe.h>
#include "../halt.h"
-#include
"libpgeasy.h"
+#include
<libpgeasy.h>
int
main(int argc, char **argv)
diff --git
a/src/interfaces/libpgeasy/libpgeasy.c
b/src/interfaces/libpgeasy/libpgeasy.c
index d7fc03e0f3c70fc218cd6a310f475624896a3b81..19b6d84167c15c6ec4b9fde046cbb0d30cab8fe1 100644
(file)
--- a/
src/interfaces/libpgeasy/libpgeasy.c
+++ b/
src/interfaces/libpgeasy/libpgeasy.c
@@
-77,7
+77,9
@@
disconnectdb()
PGresult *
doquery(char *query)
{
- if (res != NULL && in_result_block == FALSE && was_get_unset_result == FALSE)
+ if (res != NULL &&
+ in_result_block == FALSE &&
+ was_get_unset_result == FALSE)
PQclear(res);
was_get_unset_result = FALSE;