diff options
| author | Peter Eisentraut | 2017-08-16 03:34:39 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-08-16 03:34:39 +0000 |
| commit | 77d05706beb115b412728bd94dce16d83795583d (patch) | |
| tree | d1154b7ff7b438d7ecd15b2d0bbd9c5b50086a18 /src/bin/psql | |
| parent | 4d4c89171598424b31175ef9b600ac87a9a61023 (diff) | |
Fix up some misusage of appendStringInfo() and friends
Change to appendStringInfoChar() or appendStringInfoString() where those
can be used.
Author: David Rowley <david.rowley@2ndquadrant.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Diffstat (limited to 'src/bin/psql')
| -rw-r--r-- | src/bin/psql/command.c | 4 | ||||
| -rw-r--r-- | src/bin/psql/describe.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 4e04459d45e..96f3a402a40 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -4676,7 +4676,7 @@ get_create_object_cmd(EditableObjectType obj_type, Oid oid, psql_error("could not parse reloptions array\n"); result = false; } - appendPQExpBufferStr(buf, ")"); + appendPQExpBufferChar(buf, ')'); } /* View definition from pg_get_viewdef (a SELECT query) */ @@ -4862,7 +4862,7 @@ minimal_error_message(PGresult *res) appendPQExpBufferStr(msg, fld); else appendPQExpBufferStr(msg, "(not available)"); - appendPQExpBufferStr(msg, "\n"); + appendPQExpBufferChar(msg, '\n'); psql_error("%s", msg->data); diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 798e71045fd..f6049cc9e5c 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -3177,7 +3177,7 @@ describeRoles(const char *pattern, bool verbose, bool showSystem) if (strcmp(PQgetvalue(res, i, 7), "") != 0) { if (buf.len > 0) - appendPQExpBufferStr(&buf, "\n"); + appendPQExpBufferChar(&buf, '\n'); appendPQExpBufferStr(&buf, _("Password valid until ")); appendPQExpBufferStr(&buf, PQgetvalue(res, i, 7)); } |
