Fix verbose display of REPLICATION role attribute

Josh Kupershmidt
This commit is contained in:
Magnus Hagander 2011-02-27 12:35:31 +01:00
parent 721ea41f14
commit b04137a294
1 changed files with 1 additions and 1 deletions

View File

@ -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));