mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Support INOUT arguments in procedures
In a top-level CALL, the values of INOUT arguments will be returned as a result row. In PL/pgSQL, the values are assigned back to the input arguments. In other languages, the same convention as for return a record from a function is used. That does not require any code changes in the PL implementations. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
This commit is contained in:
@@ -661,7 +661,8 @@ standard_ProcessUtility(PlannedStmt *pstmt,
|
||||
|
||||
case T_CallStmt:
|
||||
ExecuteCallStmt(castNode(CallStmt, parsetree), params,
|
||||
(context != PROCESS_UTILITY_TOPLEVEL || IsTransactionBlock()));
|
||||
(context != PROCESS_UTILITY_TOPLEVEL || IsTransactionBlock()),
|
||||
dest);
|
||||
break;
|
||||
|
||||
case T_ClusterStmt:
|
||||
|
Reference in New Issue
Block a user