diff options
author | Pavan Deolasee | 2015-04-27 06:16:51 +0000 |
---|---|---|
committer | Pavan Deolasee | 2015-04-27 06:16:51 +0000 |
commit | f205105325c2502852214872808941bc0794a59e (patch) | |
tree | 2578203bceb5aac5623e796afeae0388e349706a /contrib/tablefunc/tablefunc.c | |
parent | 7fc84ffa7045cc64fefba680b5ca556b2fab4554 (diff) | |
parent | ab76208e3df6841b3770edeece57d0f048392237 (diff) |
Merge commit 'ab76208e3df6841b3770edeece57d0f048392237' into XL_MASTER_MERGE_9_4
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r-- | contrib/tablefunc/tablefunc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index 65a470114b..10ee8c76db 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -10,7 +10,7 @@ * And contributors: * Nabil Sayegh <postgresql@e-trolley.de> * - * Copyright (c) 2002-2012, PostgreSQL Global Development Group + * Copyright (c) 2002-2014, PostgreSQL Global Development Group * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without a written agreement @@ -34,9 +34,11 @@ #include <math.h> +#include "access/htup_details.h" #include "catalog/pg_type.h" -#include "funcapi.h" #include "executor/spi.h" +#include "funcapi.h" +#include "lib/stringinfo.h" #include "miscadmin.h" #include "utils/builtins.h" @@ -1338,7 +1340,7 @@ build_tuplestore_recursively(char *key_fld, for (i = 0; i < proc; i++) { /* initialize branch for this pass */ - appendStringInfo(&branchstr, "%s", branch); + appendStringInfoString(&branchstr, branch); appendStringInfo(&chk_branchstr, "%s%s%s", branch_delim, branch, branch_delim); /* get the next sql result tuple */ |