mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Update pgeasy examples
This commit is contained in:
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user