diff options
| author | Peter Eisentraut | 2018-03-14 15:47:21 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2018-03-14 16:07:28 +0000 |
| commit | 33803f67f1c4cb88733cce61207bbf2bd5b599cc (patch) | |
| tree | 9ec962aebf50eb4b16a585f83f490d9a5aa6f677 /src/backend/tcop/utility.c | |
| parent | 484a4a08abe316212d67d84bb8705b06e44f862d (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/backend/tcop/utility.c')
| -rw-r--r-- | src/backend/tcop/utility.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f78efdf359a..6effe031f85 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -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: |
