summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2020-03-31 17:51:57 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2020-03-31 17:51:57 +0300
commit02a5786df24b12c6379ef1b0375b70b8a9fb4925 (patch)
tree7aa1d4985553788872531b3ee5dbf3a416059b79 /src/test
parent087d3d0583cf292146a7385746d1f5b53eeeaee6 (diff)
Improve error reporting in opclasscmds.c
This commit improves error reporting introduced by 911e702077. It puts argument of errmsg() to the single line for easier grepping source for error text. Also it improves wording of errhint().
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/alter_generic.out2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/expected/alter_generic.out b/src/test/regress/expected/alter_generic.out
index b2a451a83f3..1e50b69ea50 100644
--- a/src/test/regress/expected/alter_generic.out
+++ b/src/test/regress/expected/alter_generic.out
@@ -506,7 +506,7 @@ ALTER OPERATOR FAMILY alt_opf19 USING btree ADD FUNCTION 5 test_opclass_options_
ERROR: function test_opclass_options_func(internal, text[], boolean) does not exist
ALTER OPERATOR FAMILY alt_opf19 USING btree ADD FUNCTION 5 (int4) btint42cmp(int4, int2);
ERROR: invalid opclass options parsing function
-HINT: opclass options parsing function must have signature '(internal) RETURNS void'
+HINT: Valid signature of opclass options parsing function is '(internal) RETURNS void'.
ALTER OPERATOR FAMILY alt_opf19 USING btree ADD FUNCTION 5 (int4, int2) btint42cmp(int4, int2);
ERROR: left and right associated data types for opclass options parsing functions must match
ALTER OPERATOR FAMILY alt_opf19 USING btree ADD FUNCTION 5 (int4) test_opclass_options_func(internal); -- Ok