{
conn->status = CONNECTION_BAD;
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("unrecognized sslmode: \"%s\"\n"),
+ libpq_gettext("invalid sslmode value: \"%s\"\n"),
conn->sslmode);
return false;
}
case 'r': /* "require" */
conn->status = CONNECTION_BAD;
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("sslmode \"%s\" invalid when SSL support is not compiled in\n"),
+ libpq_gettext("sslmode value \"%s\" invalid when SSL support is not compiled in\n"),
conn->sslmode);
return false;
}
{
if (node)
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("could not translate hostname \"%s\" to address: %s\n"),
+ libpq_gettext("could not translate host name \"%s\" to address: %s\n"),
node, gai_strerror(ret));
else
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("could not translate local service to address: %s\n"),
- gai_strerror(ret));
+ libpq_gettext("could not translate Unix-domain socket path \"%s\" to address: %s\n"),
+ portstr, gai_strerror(ret));
freeaddrinfo_all(hint.ai_family, addrs);
goto connect_errReturn;
}
/*
* PQsendQueryParams
- * Like PQsendQuery, but use 3.0 protocol so we can pass parameters
+ * Like PQsendQuery, but use protocol 3.0 so we can pass parameters
*/
int
PQsendQueryParams(PGconn *conn,
/*
* PQsendQueryPrepared
* Like PQsendQuery, but execute a previously prepared statement,
- * using 3.0 protocol so we can pass parameters
+ * using protocol 3.0 so we can pass parameters
*/
int
PQsendQueryPrepared(PGconn *conn,
/*
* PQsendQueryGuts
- * Common code for 3.0-protocol query sending
+ * Common code for protocol-3.0 query sending
* PQsendQueryStart should be done already
*
* command may be NULL to indicate we use an already-prepared statement
if (PG_PROTOCOL_MAJOR(conn->pversion) < 3)
{
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("function requires at least 3.0 protocol\n"));
+ libpq_gettext("function requires at least protocol version 3.0\n"));
return 0;
}
/*
* PQexecParams
- * Like PQexec, but use 3.0 protocol so we can pass parameters
+ * Like PQexec, but use protocol 3.0 so we can pass parameters
*/
PGresult *
PQexecParams(PGconn *conn,
/*
* PQexecPrepared
* Like PQexec, but execute a previously prepared statement,
- * using 3.0 protocol so we can pass parameters
+ * using protocol 3.0 so we can pass parameters
*/
PGresult *
PQexecPrepared(PGconn *conn,
{
/* Ooops, no way to do this in 2.0 */
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("function requires at least 3.0 protocol\n"));
+ libpq_gettext("function requires at least protocol version 3.0\n"));
return -1;
}
else
* After completing the data transfer portion of a copy in/out,
* the application must call this routine to finish the command protocol.
*
- * When using 3.0 protocol this is deprecated; it's cleaner to use PQgetResult
+ * When using protocol 3.0 this is deprecated; it's cleaner to use PQgetResult
* to get the transfer status. Note however that when using 2.0 protocol,
* recovering from a copy failure often requires a PQreset. PQendcopy will
* take care of that, PQgetResult won't.