mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
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>
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user