]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Provide query source text when parsing a SQL-standard function body.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Apr 2021 21:24:12 +0000 (17:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Apr 2021 21:24:12 +0000 (17:24 -0400)
commit409723365b2708acd3bdf2e830257504bdefac4b
tree74f72c5fa1990dda5a9202a7a5c3cf4e09ca6287
parent83efce7a1ebc5bae79617ddba12a64790141725c
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: https://postgr.es/m/2197698.1617984583@sss.pgh.pa.us
src/backend/commands/functioncmds.c
src/test/regress/expected/create_function_3.out