mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Doc: fix incorrect example of collecting arguments with fmgr macros.
Thinko in commit f66912b0a
. Back-patch to v10, as that was.
Discussion: https://postgr.es/m/154522283371.15419.15167411691473730460@wrigleys.postgresql.org
This commit is contained in:
parent
61a4480a68
commit
639924249c
@ -4587,14 +4587,15 @@ execq(PG_FUNCTION_ARGS)
|
||||
uint64 proc;
|
||||
|
||||
/* Convert given text object to a C string */
|
||||
command = text_to_cstring(PG_GETARG_TEXT_PP(1));
|
||||
cnt = PG_GETARG_INT32(2);
|
||||
command = text_to_cstring(PG_GETARG_TEXT_PP(0));
|
||||
cnt = PG_GETARG_INT32(1);
|
||||
|
||||
SPI_connect();
|
||||
|
||||
ret = SPI_exec(command, cnt);
|
||||
|
||||
proc = SPI_processed;
|
||||
|
||||
/*
|
||||
* If some rows were fetched, print them via elog(INFO).
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user