Repository: incubator-hawq Updated Branches: refs/heads/master 9a3f8b94d -> cb050d153
HAWQ-1084. Fixed memory allocation for table printing. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/cb050d15 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/cb050d15 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/cb050d15 Branch: refs/heads/master Commit: cb050d153f3b5cf97c63170ae6906845ce2284a0 Parents: 9a3f8b9 Author: Oleksandr Diachenko <odiache...@pivotal.io> Authored: Thu Oct 13 11:02:42 2016 -0700 Committer: Oleksandr Diachenko <odiache...@pivotal.io> Committed: Thu Oct 13 11:02:42 2016 -0700 ---------------------------------------------------------------------- src/bin/psql/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/cb050d15/src/bin/psql/describe.c ---------------------------------------------------------------------- diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 85012b2..0ef6c6a 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -4316,10 +4316,10 @@ describePxfTable(const char *profile, const char *pattern, bool verbose) if (verbose) { sourcefieldtype = PQgetvalue(res, i, 4); - total_fields = PQgetvalue(res, i, 5); + total_fields = atoi(PQgetvalue(res, i, 5)); } else { - total_fields = PQgetvalue(res, i, 4); + total_fields = atoi(PQgetvalue(res, i, 4)); } /* First row for current table */