mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Replace cryptic 'Unknown kind of return type' messages with something
hopefully a little more useful.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.96 2003/04/08 23:20:00 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.97 2003/06/15 17:59:10 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -483,7 +483,8 @@ checkretval(Oid rettype, char fn_typtype, List *queryTreeList)
|
||||
*/
|
||||
}
|
||||
else
|
||||
elog(ERROR, "Unknown kind of return type specified for function");
|
||||
elog(ERROR, "return type %s is not supported for SQL functions",
|
||||
format_type_be(rettype));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user