Fix get_cluster_size()

Was returning a pointer to a cleared PQresult
This commit is contained in:
Ian Barwick
2015-01-06 10:30:33 +09:00
parent 718024454e
commit 3033f2dfaf
3 changed files with 14 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ int is_standby(PGconn *conn);
int is_witness(PGconn *conn, char *schema, char *cluster, int node_id);
bool is_pgup(PGconn *conn, int timeout);
int get_server_version(PGconn *conn, char *server_version);
const char *get_cluster_size(PGconn *conn);
bool get_cluster_size(PGconn *conn, char *size);
bool get_data_directory(PGconn *conn, char *data_directory);
int guc_set(PGconn *conn, const char *parameter, const char *op,