pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix publication syntax error message 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix publication syntax error message @ 2023-05-10 16:27 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2023-05-10 16:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c39f2f68e95a54e430c6a7b7d1e9f98cedff5aff Modified Files -------------- src/backend/parser/gram.y | 4 ++-- src/test/regress/expected/publication.out | 9 +++++++++ src/test/regress/sql/publication.sql | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix publication syntax error message @ 2023-05-10 16:27 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2023-05-10 16:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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> Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8e1d68c8f8eae96334db2f6633d2a61bcfb22f9a Modified Files -------------- src/backend/parser/gram.y | 4 ++-- src/test/regress/expected/publication.out | 9 +++++++++ src/test/regress/sql/publication.sql | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-05-10 16:27 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2023-05-10 16:27 pgsql: Fix publication syntax error message Alvaro Herrera <alvherre@alvh.no-ip.org> 2023-05-10 16:27 pgsql: Fix publication syntax error message Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox