diff options
| author | Bruce Momjian | 2000-04-28 22:49:25 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2000-04-28 22:49:25 +0000 |
| commit | 0ccf3c88771a25d518ac8a6150b7fbdc0bf83fd4 (patch) | |
| tree | 5f3f0f1a504d058a73e12a7c1c58919f23069387 /src | |
| parent | 9bd604f3bee02f4d308326633cb8afeadcfba9cd (diff) | |
Update pgeasy examples
Diffstat (limited to 'src')
| -rw-r--r-- | src/interfaces/libpgeasy/examples/pginsert.c | 2 | ||||
| -rw-r--r-- | src/interfaces/libpgeasy/examples/pgnulltest.c | 2 | ||||
| -rw-r--r-- | src/interfaces/libpgeasy/examples/pgwordcount.c | 2 | ||||
| -rw-r--r-- | src/interfaces/libpgeasy/libpgeasy.c | 4 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/interfaces/libpgeasy/examples/pginsert.c b/src/interfaces/libpgeasy/examples/pginsert.c index 18b5382ede7..933d0ab1829 100644 --- 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 da88efbbe48..7fd8c7f9e27 100644 --- 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 08138510ea8..df8d5b9d0c2 100644 --- 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 d7fc03e0f3c..19b6d84167c 100644 --- 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; |
