From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 17 Aug 2024 02:50:54 +0000 (-0400)
Subject: docs:  fix incorrect plpgsql error message
X-Git-Tag: REL_13_17~96
X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=881ca9cd5904e3eab1201bb5df864036961f59b1;p=postgresql.git

docs:  fix incorrect plpgsql error message

Change "$1" to "username".

Reported-by: philipp.salvisberg@gmail.com

Discussion: https://postgr.es/m/172112109590.736590.12219129462878821880@wrigleys.postgresql.org

Backpatch-through: 12
---

diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml
index bf9076bb7df..525d46a7f7b 100644
--- a/doc/src/sgml/plpgsql.sgml
+++ b/doc/src/sgml/plpgsql.sgml
@@ -1149,7 +1149,7 @@ $$ LANGUAGE plpgsql;
      On failure, this function might produce an error message such as
 <programlisting>
 ERROR:  query returned no rows
-DETAIL:  parameters: $1 = 'nosuchuser'
+DETAIL:  parameters: username = 'nosuchuser'
 CONTEXT:  PL/pgSQL function get_userid(text) line 6 at SQL statement
 </programlisting>
     </para>