mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Implement SQL-spec RETURNS TABLE syntax for functions.
(Unlike the original submission, this patch treats TABLE output parameters as being entirely equivalent to OUT parameters -- tgl) Pavel Stehule
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.152 2008/07/16 16:55:23 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.153 2008/07/18 03:32:52 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -242,6 +242,7 @@ ProcedureCreate(const char *procedureName,
|
||||
elog(ERROR, "variadic parameter must be last");
|
||||
break;
|
||||
case PROARGMODE_OUT:
|
||||
case PROARGMODE_TABLE:
|
||||
/* okay */
|
||||
break;
|
||||
case PROARGMODE_VARIADIC:
|
||||
|
||||
Reference in New Issue
Block a user