summaryrefslogtreecommitdiff
path: root/contrib/tablefunc/tablefunc.c
diff options
context:
space:
mode:
authorTom Lane2003-06-15 17:59:10 +0000
committerTom Lane2003-06-15 17:59:10 +0000
commit3fb6f1347ffbfcbba48b37ea35925f6b19821bf6 (patch)
tree5a79f771fb6560fdf0896d5b05342dce8885bf70 /contrib/tablefunc/tablefunc.c
parent996fdb9af1e298ae1ce3729429d2416e41344086 (diff)
Replace cryptic 'Unknown kind of return type' messages with something
hopefully a little more useful.
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r--contrib/tablefunc/tablefunc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c
index 984f31dc283..68e001fcdf0 100644
--- a/contrib/tablefunc/tablefunc.c
+++ b/contrib/tablefunc/tablefunc.c
@@ -445,10 +445,8 @@ crosstab(PG_FUNCTION_ARGS)
tupdesc = make_crosstab_tupledesc(spi_tupdesc, num_categories);
}
}
- else if (functyptype == 'b')
- elog(ERROR, "Invalid kind of return type specified for function");
else
- elog(ERROR, "Unknown kind of return type specified for function");
+ elog(ERROR, "crosstab: return type must be a row type");
/*
* Check that return tupdesc is compatible with the one we got