Update pgeasy examples

This commit is contained in:
Bruce Momjian 2000-04-28 22:49:25 +00:00
parent 9bd604f3be
commit 0ccf3c8877
5 changed files with 7 additions and 5 deletions

View File

@ -8,7 +8,7 @@
#include "libpq-fe.h"
#include "halt.h"
#include "libpgeasy.h"
#include <libpgeasy.h>
PGresult *attres,
*relres;

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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;