pgsql: Provide query source text when parsing a SQL-standard function b

Started by Tom Laneover 5 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Provide query source text when parsing a SQL-standard function body.

Without this, we lose error cursor positions, as shown in the
modified regression test result.

Discussion: /messages/by-id/2197698.1617984583@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/409723365b2708acd3bdf2e830257504bdefac4b

Modified Files
--------------
src/backend/commands/functioncmds.c | 10 ++++++++--
src/test/regress/expected/create_function_3.out | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)