aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-05-19 15:48:10 -0400
committerRobert Haas <rhaas@postgresql.org>2017-05-19 15:48:10 -0400
commitaa41bc794c51a4d5c364cca014c199b1a00d26aa (patch)
treebf0fd94293a8db936cf60d9ba64a163fd18ec163 /src
parentb522759508dae17535f8cd20598a50a409a97f4d (diff)
downloadpostgresql-aa41bc794c51a4d5c364cca014c199b1a00d26aa.tar.gz
postgresql-aa41bc794c51a4d5c364cca014c199b1a00d26aa.zip
Capitalize SHOW when testing whether target_session_attrs=read-write.
This makes it also work for replication connections. Report and patch by Daisuke Higuchi. Discussion: http://postgr.es/m/1803D792815FC24D871C00D17AE95905B1A34A@g01jpexmbkw24
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 02b7358acab..8e3ef4b9f75 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -2845,7 +2845,7 @@ keep_going: /* We will come back to here until there is
conn->status = CONNECTION_OK;
if (!PQsendQuery(conn,
- "show transaction_read_only"))
+ "SHOW transaction_read_only"))
{
restoreErrorMessage(conn, &savedMessage);
goto error_return;
@@ -2901,7 +2901,7 @@ keep_going: /* We will come back to here until there is
conn->status = CONNECTION_OK;
if (!PQsendQuery(conn,
- "show transaction_read_only"))
+ "SHOW transaction_read_only"))
{
restoreErrorMessage(conn, &savedMessage);
goto error_return;
@@ -3014,14 +3014,14 @@ keep_going: /* We will come back to here until there is
}
/*
- * Something went wrong with "show transaction_read_only". We
+ * Something went wrong with "SHOW transaction_read_only". We
* should try next addresses.
*/
if (res)
PQclear(res);
restoreErrorMessage(conn, &savedMessage);
appendPQExpBuffer(&conn->errorMessage,
- libpq_gettext("test \"show transaction_read_only\" failed "
+ libpq_gettext("test \"SHOW transaction_read_only\" failed "
" on \"%s:%s\"\n"),
conn->connhost[conn->whichhost].host,
conn->connhost[conn->whichhost].port);