summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/sources.sgml7
-rw-r--r--doc/src/sgml/typeconv.sgml10
2 files changed, 9 insertions, 8 deletions
diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml
index 261f19b3534..760f9b69d47 100644
--- a/doc/src/sgml/sources.sgml
+++ b/doc/src/sgml/sources.sgml
@@ -153,11 +153,12 @@ ereport(ERROR,
errmsg("function %s is not unique",
func_signature_string(funcname, nargs,
NIL, actual_arg_types)),
- errhint("Unable to choose a best candidate function. "
- "You might need to add explicit typecasts."));
+ errdetail("Could not choose a best candidate function."),
+ errhint("You might need to add explicit type casts."));
</programlisting>
This illustrates the use of format codes to embed run-time values into
- a message text. Also, an optional <quote>hint</quote> message is provided.
+ a message text. Also, optional <quote>detail</quote>
+ and <quote>hint</quote> messages are provided.
The auxiliary function calls can be written in any order, but
conventionally <function>errcode</function>
and <function>errmsg</function> appear first.
diff --git a/doc/src/sgml/typeconv.sgml b/doc/src/sgml/typeconv.sgml
index 28748742486..1707bd884dc 100644
--- a/doc/src/sgml/typeconv.sgml
+++ b/doc/src/sgml/typeconv.sgml
@@ -465,9 +465,9 @@ try a similar case with <literal>~</literal>, we get:
<screen>
SELECT ~ '20' AS "negation";
-ERROR: operator is not unique: ~ "unknown"
-HINT: Could not choose a best candidate operator. You might need to add
-explicit type casts.
+ERROR: operator is not unique: ~ unknown
+DETAIL: Could not choose a best candidate operator.
+HINT: You might need to add explicit type casts.
</screen>
This happens because the system cannot decide which of the several
possible <literal>~</literal> operators should be preferred. We can help
@@ -901,8 +901,8 @@ the parser will try to convert that to <type>text</type>:
<screen>
SELECT substr(1234, 3);
ERROR: function substr(integer, integer) does not exist
-HINT: No function matches the given name and argument types. You might need
-to add explicit type casts.
+DETAIL: No function of that name accepts the given argument types.
+HINT: You might need to add explicit type casts.
</screen>
This does not work because <type>integer</type> does not have an implicit cast