diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-05-11 20:38:55 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-05-11 20:38:55 -0400 |
commit | d02f16470f117db3038dbfd87662d5f0eb5a2a9b (patch) | |
tree | 13057bb662f4b7ffeeae077a224dc61fdd5ea7a3 /contrib/postgres_fdw/postgres_fdw.c | |
parent | b488c580aef4e05f39be5daaab6464da5b22a494 (diff) | |
download | postgresql-d02f16470f117db3038dbfd87662d5f0eb5a2a9b.tar.gz postgresql-d02f16470f117db3038dbfd87662d5f0eb5a2a9b.zip |
Replace some appendStringInfo* calls with more appropriate variants
Author: David Rowley <dgrowleyml@gmail.com>
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index ec89b25f61a..0c442608426 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -2734,7 +2734,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid) appendStringInfoString(&buf, ", "); deparseStringLiteral(&buf, rv->relname); } - appendStringInfoString(&buf, ")"); + appendStringInfoChar(&buf, ')'); } /* Append ORDER BY at the end of query to ensure output ordering */ @@ -2798,7 +2798,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid) */ appendStringInfoString(&buf, " OPTIONS (column_name "); deparseStringLiteral(&buf, attname); - appendStringInfoString(&buf, ")"); + appendStringInfoChar(&buf, ')'); /* Add COLLATE if needed */ if (import_collate && collname != NULL && collnamespace != NULL) |