diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-10-31 12:43:47 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-10-31 12:43:47 -0400 |
commit | acb2d7d5d2301f07d5857ee252995e62ce9e7055 (patch) | |
tree | 0fdcadd97218dbeb0b85ea0e99b76e521d1fcccc /src/backend/access/gist/gistvalidate.c | |
parent | fd2706589a7da4be6f6998befdf8e5fdea1565b8 (diff) | |
download | postgresql-acb2d7d5d2301f07d5857ee252995e62ce9e7055.tar.gz postgresql-acb2d7d5d2301f07d5857ee252995e62ce9e7055.zip |
plpgsql: report proper line number for errors in variable initialization.
Previously, we pointed at the surrounding block's BEGIN keyword.
If there are multiple variables being initialized in a DECLARE section,
this isn't good enough: it can be quite confusing and unhelpful.
We do know where the variable's declaration started, so it just takes
a tiny bit more error-reporting infrastructure to use that.
Discussion: https://postgr.es/m/713975.1635530414@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions