mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fully const-ify PQconnectdbParams, PQconnectStartParams, and PQpingParams.
The keywords and values arguments of these functions are more properly declared "const char * const *" than just "const char **". Lionel Elie Mamane, reviewed by Craig Ringer
This commit is contained in:
@ -98,7 +98,9 @@
|
||||
Makes a new connection to the database server.
|
||||
|
||||
<synopsis>
|
||||
PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand_dbname);
|
||||
PGconn *PQconnectdbParams(const char * const *keywords,
|
||||
const char * const *values,
|
||||
int expand_dbname);
|
||||
</synopsis>
|
||||
</para>
|
||||
|
||||
@ -730,8 +732,8 @@ PGconn *PQsetdb(char *pghost,
|
||||
Make a connection to the database server in a nonblocking manner.
|
||||
|
||||
<synopsis>
|
||||
PGconn *PQconnectStartParams(const char **keywords,
|
||||
const char **values,
|
||||
PGconn *PQconnectStartParams(const char * const *keywords,
|
||||
const char * const *values,
|
||||
int expand_dbname);
|
||||
|
||||
PGconn *PQconnectStart(const char *conninfo);
|
||||
@ -1112,7 +1114,9 @@ PostgresPollingStatusType PQresetPoll(PGconn *conn);
|
||||
values to obtain the server status.
|
||||
|
||||
<synopsis>
|
||||
PGPing PQpingParams(const char **keywords, const char **values, int expand_dbname);
|
||||
PGPing PQpingParams(const char * const *keywords,
|
||||
const char * const *values,
|
||||
int expand_dbname);
|
||||
</synopsis>
|
||||
|
||||
The function returns one of the following values:
|
||||
|
Reference in New Issue
Block a user