postgres.git / summary / log / commit / refs
commit b04137a2948a24dfa3b87222f07073eb9939b264
Author: Magnus Hagander <magnus@hagander.net>
Date: Sun Feb 27 11:35:31 2011 +0000
First released in: 9.1.0
Fix verbose display of REPLICATION role attribute
Josh Kupershmidt
src/bin/psql/describe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 9dc02a1e3dd..fc860cccfd0 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -2342,7 +2342,7 @@ describeRoles(const char *pattern, bool verbose)
add_role_attribute(&buf, _("Cannot login"));
if (pset.sversion >= 90100)
- if (strcmp(PQgetvalue(res, i, 8), "t") == 0)
+ if (strcmp(PQgetvalue(res, i, (verbose ? 9 : 8)), "t") == 0)
add_role_attribute(&buf, _("Replication"));
conns = atoi(PQgetvalue(res, i, 6));
[parent: 721ea41f1413]