]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix publication syntax error message
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 10 May 2023 16:26:10 +0000 (18:26 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 10 May 2023 16:26:10 +0000 (18:26 +0200)
commit8e1d68c8f8eae96334db2f6633d2a61bcfb22f9a
tree0b535de9b0b0939dcb39f118922fa789ced31600
parentccd21e1cfa11fa4f39d01d95cf119beae9cf4d20
Fix publication syntax error message

There was some odd wording in corner-case gram.y error messages "some
error ... at or near", which appears to have been modeled after "syntax
error" messages.  However, they don't work that way, and they're just
wrong.  They're also uncovered by tests.  Remove the trailing words,
and also add tests.

They were introduced with 5a2832465fd8; backpatch to 15.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
src/backend/parser/gram.y
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql