aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-15 23:34:39 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-08-15 23:34:39 -0400
commit77d05706beb115b412728bd94dce16d83795583d (patch)
treed1154b7ff7b438d7ecd15b2d0bbd9c5b50086a18 /src/bin/psql/command.c
parent4d4c89171598424b31175ef9b600ac87a9a61023 (diff)
downloadpostgresql-77d05706beb115b412728bd94dce16d83795583d.tar.gz
postgresql-77d05706beb115b412728bd94dce16d83795583d.zip
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/command.c')
-rw-r--r--src/bin/psql/command.c4
1 files changed, 2 insertions, 2 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);